Chromium Code Reviews| Index: chrome/browser/chromeos/system/ash_system_tray_delegate.cc |
| diff --git a/chrome/browser/chromeos/system/ash_system_tray_delegate.cc b/chrome/browser/chromeos/system/ash_system_tray_delegate.cc |
| index cd6f7389f7cff58dd9294b0e7de4acf9db28a53a..63a8659a7e930af6ad98a0d38a71fde9636832e2 100644 |
| --- a/chrome/browser/chromeos/system/ash_system_tray_delegate.cc |
| +++ b/chrome/browser/chromeos/system/ash_system_tray_delegate.cc |
| @@ -418,8 +418,10 @@ class SystemTrayDelegate : public ash::SystemTrayDelegate, |
| // browser window with an empty tab and returns it. |
| Browser* GetAppropriateBrowser() { |
| Browser* browser = BrowserList::GetLastActive(); |
| - if (!browser) |
| - browser = Browser::NewEmptyWindow(ProfileManager::GetDefaultProfile()); |
| + if (!browser) { |
| + Profile* profile = ProfileManager::GetDefaultProfile(); |
| + browser = Browser::OpenEmptyWindow(profile->GetOriginalProfile()); |
|
sky
2012/03/22 00:40:09
I think this is the wrong thing when not signed in
sadrul
2012/03/22 00:46:40
Ah, good point. I'll wait for that CL to land.
|
| + } |
| return browser; |
| } |