| Index: chrome/browser/browser_init.cc
|
| ===================================================================
|
| --- chrome/browser/browser_init.cc (revision 2596)
|
| +++ chrome/browser/browser_init.cc (working copy)
|
| @@ -668,6 +668,10 @@
|
| bool process_startup, int* return_code) {
|
| DCHECK(profile);
|
|
|
| + // Continue with the off-the-record profile from here on if --incognito
|
| + if (parsed_command_line.HasSwitch(switches::kIncognito))
|
| + profile = profile->GetOffTheRecordProfile();
|
| +
|
| // Are we starting an application?
|
| std::wstring app_url = parsed_command_line.GetSwitchValue(switches::kApp);
|
| if (!app_url.empty()) {
|
|
|