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; |
} |