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

Unified Diff: chrome/browser/printing/print_dialog_cloud.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
Index: chrome/browser/printing/print_dialog_cloud.cc
===================================================================
--- chrome/browser/printing/print_dialog_cloud.cc (revision 137868)
+++ chrome/browser/printing/print_dialog_cloud.cc (working copy)
@@ -15,6 +15,7 @@
#include "base/values.h"
#include "chrome/browser/browser_process_impl.h"
#include "chrome/browser/debugger/devtools_window.h"
+#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/printing/cloud_print/cloud_print_url.h"
#include "chrome/browser/profiles/profile.h"
@@ -540,7 +541,7 @@
// If we're not modal we can show the dialog with no browser.
// We need this to keep Chrome alive while our dialog is up.
if (!modal_)
- BrowserList::StartKeepAlive();
+ browser::StartKeepAlive();
}
CloudPrintWebDialogDelegate::~CloudPrintWebDialogDelegate() {
@@ -597,7 +598,7 @@
// If we're modal we can show the dialog with no browser.
// End the keep-alive so that Chrome can exit.
if (!modal_)
- BrowserList::EndKeepAlive();
+ browser::EndKeepAlive();
delete this;
}
« no previous file with comments | « chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc ('k') | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698