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

Unified Diff: chrome/browser/ui/browser_list_aura.cc

Issue 10409022: Move application lifetime functionality off BrowserList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser_list.cc ('k') | chrome/browser/ui/browser_list_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_list_aura.cc
===================================================================
--- chrome/browser/ui/browser_list_aura.cc (revision 137868)
+++ chrome/browser/ui/browser_list_aura.cc (working copy)
@@ -1,32 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/browser_list.h"
-
-#include "base/command_line.h"
-#include "chrome/common/chrome_switches.h"
-#include "chrome/browser/browser_process.h"
-#include "chrome/browser/notifications/notification_ui_manager.h"
-
-// static
-void BrowserList::HandleAppExitingForPlatform() {
- // Close All non browser windows now. Those includes notifications
- // and windows created by Ash (launcher, background, etc).
- g_browser_process->notification_ui_manager()->CancelAll();
- // TODO(oshima): Close all non browser windows here while
- // the message loop is still alive.
-#if defined(OS_CHROMEOS)
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableZeroBrowsersOpenForTests)) {
- // App is exiting, call EndKeepAlive() on behalf of Aura Shell.
- BrowserList::EndKeepAlive();
- // Make sure we have notified the session manager that we are exiting.
- // This might be called from FastShutdown() or CloseAllBrowsers(), but not
- // if something prevents a browser from closing before SetTryingToQuit()
- // gets called (e.g. browser->TabsNeedBeforeUnloadFired() is true).
- // NotifyAndTerminate does nothing if called more than once.
- BrowserList::NotifyAndTerminate(true);
- }
-#endif // OS_CHROMEOS
-}
« no previous file with comments | « chrome/browser/ui/browser_list.cc ('k') | chrome/browser/ui/browser_list_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698