Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: chrome/browser/lifetime/application_lifetime_aura.cc

Issue 2493973003: Display "Restart to update" dialog to Chrome OS users. (Closed)
Patch Set: Display "Restart to update" dialog to Chrome OS users. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/lifetime/application_lifetime.h" 5 #include "chrome/browser/lifetime/application_lifetime.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/browser_process_platform_part.h" 10 #include "chrome/browser/browser_process_platform_part.h"
(...skipping 30 matching lines...) Expand all
41 #if defined(OS_CHROMEOS) 41 #if defined(OS_CHROMEOS)
42 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( 42 if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
43 switches::kDisableZeroBrowsersOpenForTests)) { 43 switches::kDisableZeroBrowsersOpenForTests)) {
44 // App is exiting, release the keep alive on behalf of Aura Shell. 44 // App is exiting, release the keep alive on behalf of Aura Shell.
45 g_browser_process->platform_part()->UnregisterKeepAlive(); 45 g_browser_process->platform_part()->UnregisterKeepAlive();
46 // Make sure we have notified the session manager that we are exiting. 46 // Make sure we have notified the session manager that we are exiting.
47 // This might be called from FastShutdown() or CloseAllBrowsers(), but not 47 // This might be called from FastShutdown() or CloseAllBrowsers(), but not
48 // if something prevents a browser from closing before SetTryingToQuit() 48 // if something prevents a browser from closing before SetTryingToQuit()
49 // gets called (e.g. browser->TabsNeedBeforeUnloadFired() is true). 49 // gets called (e.g. browser->TabsNeedBeforeUnloadFired() is true).
50 // NotifyAndTerminate does nothing if called more than once. 50 // NotifyAndTerminate does nothing if called more than once.
51 NotifyAndTerminate(true); 51 NotifyAndTerminate(/*fast_path=*/true,/*always_reboot=*/false);
52 } 52 }
53 #endif 53 #endif
54 } 54 }
55 55
56 } // namespace chrome 56 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698