Chromium Code Reviews| Index: chrome/browser/ui/browser_list.cc |
| diff --git a/chrome/browser/ui/browser_list.cc b/chrome/browser/ui/browser_list.cc |
| index cc536f1611d7e51c4c8f9d4100440910231c54ec..0ff923a2a3be2573e687ac8486acdc72cd38ec00 100644 |
| --- a/chrome/browser/ui/browser_list.cc |
| +++ b/chrome/browser/ui/browser_list.cc |
| @@ -281,8 +281,8 @@ void BrowserList::AttemptExitInternal() { |
| // static |
| void BrowserList::NotifyAndTerminate(bool fast_path) { |
| #if defined(OS_CHROMEOS) |
| - if (!signout) return; |
| - NotifyWindowManagerAboutSignout(); |
| + if (!signout) |
| + return; |
| #endif |
| if (fast_path) { |
| @@ -292,6 +292,7 @@ void BrowserList::NotifyAndTerminate(bool fast_path) { |
| } |
| #if defined(OS_CHROMEOS) |
| + NotifyWindowManagerAboutSignout(); |
| chromeos::CrosLibrary* cros_library = chromeos::CrosLibrary::Get(); |
| if (cros_library->EnsureLoaded()) { |
| // If update has been installed, reboot, otherwise, sign out. |
| @@ -439,9 +440,8 @@ void BrowserList::AttemptUserExit() { |
| state->ScheduleSavePersistentPrefs(); |
| } |
| } |
| - if (FastShutdown()) { |
| + if (FastShutdown()) |
| return; |
| - } |
| #else |
| // Reset the restart bit that might have been set in cancelled restart |
| // request. |
| @@ -481,7 +481,7 @@ void BrowserList::AttemptExit() { |
| // static |
| void BrowserList::ExitCleanly() { |
| // We always mark exit cleanly. |
| - MarkAsCleanShutdown(); |
| + g_browser_process->EndSession(); |
|
achuithb
2011/06/30 20:27:55
This is good. It seems unnecessary that EndSession
oshima
2011/06/30 21:26:33
It MAY wait for 10 seconds (i'm most case not). No
achuithb
2011/06/30 21:51:21
The wait seems unnecessary and unhelpful in our ca
|
| AttemptExitInternal(); |
| } |
| #endif |