Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(656)

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 12670013: Out-of-process import on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on top of https://codereview.chromium.org/15736014/ Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 4fb445330ad0c6fdf0991e928acee0aa2f0229d0..63d5c90d8dae6628ec585ab5ecc50ced2741fb57 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -783,9 +783,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() {
(!force_first_run &&
parsed_command_line().HasSwitch(switches::kNoFirstRun));
- is_first_run =
- (force_first_run || first_run::IsChromeFirstRun()) &&
- !ProfileManager::IsImportProcess(parsed_command_line());
+ is_first_run = force_first_run || first_run::IsChromeFirstRun();
#endif
scoped_refptr<base::SequencedTaskRunner> local_state_task_runner =
@@ -1158,19 +1156,9 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
return chrome::RESULT_CODE_PACK_EXTENSION_ERROR;
}
- bool pass_command_line = true;
-
-#if !defined(OS_MACOSX)
- // In environments other than Mac OS X we support import of settings
- // from other browsers. In case this process is a short-lived "import"
- // process that another browser runs just to import the settings, we
- // don't want to be checking for another browser process, by design.
- pass_command_line = !ProfileManager::IsImportProcess(parsed_command_line());
-#endif
-
// If we're being launched just to check the connector policy, we are
// short-lived and don't want to be passing that switch off.
- pass_command_line = pass_command_line && !parsed_command_line().HasSwitch(
+ bool pass_command_line = !parsed_command_line().HasSwitch(
switches::kCheckCloudPrintConnectorPolicy);
if (pass_command_line) {
@@ -1274,16 +1262,6 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
#endif
// Post-profile init ---------------------------------------------------------
-#if !defined(OS_MACOSX) && !defined(OS_ANDROID)
- // Importing other browser settings is done in a browser-like process
- // that exits when this task has finished.
- // TODO(port): Port the Mac's IPC-based implementation to other platforms to
- // replace this implementation. http://crbug.com/22142
- if (ProfileManager::IsImportProcess(parsed_command_line())) {
- return first_run::ImportNow(profile_, parsed_command_line());
- }
-#endif
-
#if defined(OS_WIN)
// Do the tasks if chrome has been upgraded while it was last running.
if (!already_running && upgrade_util::DoUpgradeTasks(parsed_command_line()))
@@ -1339,7 +1317,9 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
first_run::AutoImport(profile_,
master_prefs_->homepage_defined,
master_prefs_->do_import_items,
- master_prefs_->dont_import_items);
+ master_prefs_->dont_import_items,
+ master_prefs_->import_bookmarks_path);
+
// Note: this can pop the first run consent dialog on linux.
first_run::DoPostImportTasks(profile_, master_prefs_->make_chrome_default);
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698