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

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

Issue 176363002: Rename Start/EndKeepAlive to Increment/DecrementKeepAliveCount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (rename_keep_alive) Created 6 years, 10 months 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 | Annotate | Revision Log
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 "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/notifications/notification_ui_manager.h" 9 #include "chrome/browser/notifications/notification_ui_manager.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 #else 38 #else
39 g_browser_process->notification_ui_manager()->CancelAll(); 39 g_browser_process->notification_ui_manager()->CancelAll();
40 #endif 40 #endif
41 41
42 views::Widget::CloseAllSecondaryWidgets(); 42 views::Widget::CloseAllSecondaryWidgets();
43 43
44 #if defined(OS_CHROMEOS) 44 #if defined(OS_CHROMEOS)
45 if (!CommandLine::ForCurrentProcess()->HasSwitch( 45 if (!CommandLine::ForCurrentProcess()->HasSwitch(
46 switches::kDisableZeroBrowsersOpenForTests)) { 46 switches::kDisableZeroBrowsersOpenForTests)) {
47 // App is exiting, call EndKeepAlive() on behalf of Aura Shell. 47 // App is exiting, call DecrementKeepAliveCount() on behalf of Aura Shell.
48 EndKeepAlive(); 48 DecrementKeepAliveCount();
49 // Make sure we have notified the session manager that we are exiting. 49 // Make sure we have notified the session manager that we are exiting.
50 // This might be called from FastShutdown() or CloseAllBrowsers(), but not 50 // This might be called from FastShutdown() or CloseAllBrowsers(), but not
51 // if something prevents a browser from closing before SetTryingToQuit() 51 // if something prevents a browser from closing before SetTryingToQuit()
52 // gets called (e.g. browser->TabsNeedBeforeUnloadFired() is true). 52 // gets called (e.g. browser->TabsNeedBeforeUnloadFired() is true).
53 // NotifyAndTerminate does nothing if called more than once. 53 // NotifyAndTerminate does nothing if called more than once.
54 NotifyAndTerminate(true); 54 NotifyAndTerminate(true);
55 } 55 }
56 #endif // OS_CHROMEOS 56 #endif // OS_CHROMEOS
57 } 57 }
58 58
59 } // namespace chrome 59 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/lifetime/application_lifetime.cc ('k') | chrome/browser/lifetime/browser_close_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698