Skip to content

Commit

Permalink
browser: disable profile auto-import on first run
Browse files Browse the repository at this point in the history
  • Loading branch information
jengelh committed Nov 14, 2023
1 parent 0d038af commit 4d4acb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chrome/browser/chrome_browser_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1645,11 +1645,13 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
// and preferences have been registered since some of the import code depends
// on preferences.
if (first_run::IsChromeFirstRun()) {
#if 0
// `profile` may be nullptr even on first run, for example when the
// "BrowserSignin" policy is set to "Force". If so, skip the auto import.
if (profile) {
first_run::AutoImport(profile, master_prefs_->import_bookmarks_path);
}
#endif

// Note: This can pop-up the first run consent dialog on Linux & Mac.
first_run::DoPostImportTasks(master_prefs_->make_chrome_default_for_user);
Expand Down

0 comments on commit 4d4acb1

Please sign in to comment.