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

Unified Diff: chrome/browser/background/background_mode_manager.h

Issue 1128033002: Avoiding use of NOTIFICATION_EXTENSION_READY_DEPRECATED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments Created 5 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/background/background_mode_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background/background_mode_manager.h
diff --git a/chrome/browser/background/background_mode_manager.h b/chrome/browser/background/background_mode_manager.h
index a815ccd6969acd28b74ed00c8351ad225a0b152d..11e1fcd6b0ed27bd3cb4d9be562e1e20f3826271 100644
--- a/chrome/browser/background/background_mode_manager.h
+++ b/chrome/browser/background/background_mode_manager.h
@@ -9,6 +9,7 @@
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_vector.h"
+#include "base/memory/weak_ptr.h"
#include "base/prefs/pref_change_registrar.h"
#include "chrome/browser/background/background_application_list_model.h"
#include "chrome/browser/profiles/profile_info_cache_observer.h"
@@ -195,6 +196,9 @@ class BackgroundModeManager
const content::NotificationSource& source,
const content::NotificationDetails& details) override;
+ // Called when ExtensionSystem is ready.
+ void OnExtensionsReady();
+
// Called when the kBackgroundModeEnabled preference changes.
void OnBackgroundModeEnabledPrefChanged();
@@ -356,6 +360,8 @@ class BackgroundModeManager
// Set to true when background mode is keeping Chrome alive.
bool keeping_alive_;
+ base::WeakPtrFactory<BackgroundModeManager> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(BackgroundModeManager);
};
« no previous file with comments | « no previous file | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698