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

Unified Diff: chrome/browser/ui/views/critical_notification_bubble_view.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/ui/views/critical_notification_bubble_view.cc
===================================================================
--- chrome/browser/ui/views/critical_notification_bubble_view.cc (revision 137868)
+++ chrome/browser/ui/views/critical_notification_bubble_view.cc (working copy)
@@ -7,8 +7,8 @@
#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/prefs/pref_service.h"
-#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/upgrade_detector.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/user_metrics.h"
@@ -97,7 +97,7 @@
content::RecordAction(
UserMetricsAction("CriticalNotification_AutoRestart"));
refresh_timer_.Stop();
- BrowserList::AttemptRestart();
+ browser::AttemptRestart();
}
// Update the counter. It may seem counter-intuitive to update the message
@@ -116,7 +116,7 @@
if (sender == restart_button_) {
content::RecordAction(
UserMetricsAction("CriticalNotification_Restart"));
- BrowserList::AttemptRestart();
+ browser::AttemptRestart();
} else if (sender == dismiss_button_) {
content::RecordAction(UserMetricsAction("CriticalNotification_Ignore"));
// If the counter reaches 0, we set a restart flag that must be cleared if
« no previous file with comments | « chrome/browser/ui/views/ash/chrome_shell_delegate.cc ('k') | chrome/browser/ui/views/frame/browser_frame_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698