Index: chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc |
diff --git a/chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc b/chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc |
index dbd03d2e6a09588dc1a3653f6581801685652bf1..0f6683ecc2c40d25ebe55f49a440678c528ff962 100644 |
--- a/chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc |
+++ b/chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc |
@@ -518,12 +518,5 @@ void ChromeLauncherDelegate::SetAppIconLoaderForTest(AppIconLoader* loader) { |
} |
Profile* ChromeLauncherDelegate::GetProfileForNewWindows() { |
- Profile* profile = ProfileManager::GetDefaultProfile(); |
- if (browser_defaults::kAlwaysOpenIncognitoWindow && |
- IncognitoModePrefs::ShouldLaunchIncognito( |
- *CommandLine::ForCurrentProcess(), |
- profile->GetPrefs())) { |
- profile = profile->GetOffTheRecordProfile(); |
- } |
- return profile; |
+ return ProfileManager::GetDefaultProfileOrOffTheRecord(); |
} |