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

Unified Diff: chrome/browser/printing/cloud_print/cloud_print_proxy_service.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/lifetime/application_lifetime_win.cc ('k') | chrome/browser/printing/print_dialog_cloud.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc
===================================================================
--- chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc (revision 137868)
+++ chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc (working copy)
@@ -12,6 +12,7 @@
#include "base/message_loop.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/notifications/desktop_notification_service.h"
#include "chrome/browser/notifications/notification.h"
#include "chrome/browser/notifications/notification_ui_manager.h"
@@ -19,7 +20,6 @@
#include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/service/service_process_control.h"
-#include "chrome/browser/ui/browser_list.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/cloud_print/cloud_print_proxy_info.h"
#include "chrome/common/pref_names.h"
@@ -145,7 +145,7 @@
token_expired_delegate_.get());
g_browser_process->notification_ui_manager()->Add(notification, profile_);
// Keep the browser alive while we are showing the notification.
- BrowserList::StartKeepAlive();
+ browser::StartKeepAlive();
return true;
}
@@ -173,7 +173,7 @@
token_expired_delegate_->id());
token_expired_delegate_ = NULL;
if (!keep_alive)
- BrowserList::EndKeepAlive();
+ browser::EndKeepAlive();
}
}
@@ -200,7 +200,7 @@
void CloudPrintProxyService::OnCloudPrintSetupClosed() {
MessageLoop::current()->PostTask(
- FROM_HERE, base::Bind(&BrowserList::EndKeepAlive));
+ FROM_HERE, base::Bind(&browser::EndKeepAlive));
}
void CloudPrintProxyService::Observe(
« no previous file with comments | « chrome/browser/lifetime/application_lifetime_win.cc ('k') | chrome/browser/printing/print_dialog_cloud.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698