browser-disable-profile-auto-import-on-first-run.patch 930 B

12345678910111213141516171819
  1. From 7134d5fd762237ad2d80093b68ccbd1582476640 Mon Sep 17 00:00:00 2001
  2. From: Joachim Bauch <jojo@struktur.de>
  3. Date: Thu, 25 Jun 2015 15:51:59 +0200
  4. Subject: [PATCH 56/66] browser: disable profile auto-import on first run
  5. --- a/chrome/browser/chrome_browser_main.cc
  6. +++ b/chrome/browser/chrome_browser_main.cc
  7. @@ -1658,11 +1658,6 @@ int ChromeBrowserMainParts::PreMainMessa
  8. // and preferences have been registered since some of the import code depends
  9. // on preferences.
  10. if (first_run::IsChromeFirstRun()) {
  11. - // `profile` may be nullptr even on first run, for example when the
  12. - // "BrowserSignin" policy is set to "Force". If so, skip the auto import.
  13. - if (profile) {
  14. - first_run::AutoImport(profile, master_prefs_->import_bookmarks_path);
  15. - }
  16. // Note: This can pop-up the first run consent dialog on Linux & Mac.
  17. first_run::DoPostImportTasks(master_prefs_->make_chrome_default_for_user);