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

Unified Diff: chrome/browser/first_run/first_run_win.cc

Issue 11572036: Do not load extension system in the Profile import process. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: comment about test-only function Created 8 years 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
Index: chrome/browser/first_run/first_run_win.cc
diff --git a/chrome/browser/first_run/first_run_win.cc b/chrome/browser/first_run/first_run_win.cc
index 8c8707ffbb35ce7dea430be55b96532a040aaf0c..09c56b2cd08e6df985816fe446cc40e7f4f41fba 100644
--- a/chrome/browser/first_run/first_run_win.cc
+++ b/chrome/browser/first_run/first_run_win.cc
@@ -338,6 +338,9 @@ bool ImportSettingsWin(Profile* profile,
import_cmd.AppendSwitchASCII(switches::kLang,
g_browser_process->GetApplicationLocale());
+ // Always run BrowserMain, even in tests.
+ import_cmd.AppendSwitch(switches::kLaunchAsBrowser);
+
if (items_to_import) {
import_cmd.AppendSwitchASCII(switches::kImport,
EncodeImportParams(importer_type, items_to_import, skip_first_run_ui));

Powered by Google App Engine
This is Rietveld 408576698