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

Unified Diff: chrome/browser/app_controller_mac.mm

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 | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.mm
===================================================================
--- chrome/browser/app_controller_mac.mm (revision 137868)
+++ chrome/browser/app_controller_mac.mm (working copy)
@@ -23,6 +23,7 @@
#include "chrome/browser/download/download_service.h"
#include "chrome/browser/download/download_service_factory.h"
#include "chrome/browser/first_run/first_run.h"
+#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/printing/cloud_print/virtual_driver_install_helper.h"
#include "chrome/browser/printing/print_dialog_cloud.h"
@@ -318,14 +319,14 @@
if (!browser_shutdown::IsTryingToQuit())
g_browser_process->print_job_manager()->StopJobs(true);
- // Initiate a shutdown (via BrowserList::CloseAllBrowsers()) if we aren't
+ // Initiate a shutdown (via browser::CloseAllBrowsers()) if we aren't
// already shutting down.
if (!browser_shutdown::IsTryingToQuit()) {
content::NotificationService::current()->Notify(
content::NOTIFICATION_APP_EXITING,
content::NotificationService::AllSources(),
content::NotificationService::NoDetails());
- BrowserList::CloseAllBrowsers();
+ browser::CloseAllBrowsers();
}
return num_browsers == 0 ? YES : NO;
@@ -369,7 +370,7 @@
// Tell BrowserList not to keep the browser process alive. Once all the
// browsers get dealloc'd, it will stop the RunLoop and fall back into main().
- BrowserList::EndKeepAlive();
+ browser::EndKeepAlive();
[self unregisterEventHandlers];
}
@@ -574,7 +575,7 @@
- (void)applicationDidFinishLaunching:(NSNotification*)notify {
// Notify BrowserList to keep the application running so it doesn't go away
// when all the browser windows get closed.
- BrowserList::StartKeepAlive();
+ browser::StartKeepAlive();
[self setUpdateCheckInterval];
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698