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

Unified Diff: chrome/browser/profiles/profile_manager.cc

Issue 7630002: Fix regression where component extensions were being loaded for login profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 2bbc0c2e195c43666708277a85a423fb58cc1095..e2536fa47171b25c5122e5a8db306eabae533882 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -312,7 +312,16 @@ bool ProfileManager::AddProfile(Profile* profile) {
}
RegisterProfile(profile, true);
- DoFinalInit(profile, false);
+ bool go_off_the_record = true;
Denis Lagno 2011/08/12 06:50:02 if you want to restore the behaviour that existed
DaveMoore 2011/08/12 16:37:42 Done.
+#if defined(OS_CHROMEOS)
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ if (!logged_in_ &&
+ (!command_line.HasSwitch(switches::kTestType) ||
+ command_line.HasSwitch(switches::kLoginProfile))) {
Dmitry Polukhin 2011/08/12 08:04:31 #2
+ go_off_the_record = true;
zel 2011/08/12 16:15:40 go_off_the_record is always true!?
DaveMoore 2011/08/12 16:37:42 Done.
+ }
+#endif
+ DoFinalInit(profile, go_off_the_record);
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698