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

Unified Diff: chrome/browser/extensions/api/idle/idle_manager.cc

Issue 560913006: Changing the Weakptr initialization order in chrome/browser/extension folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/extensions/api/idle/idle_manager.cc
diff --git a/chrome/browser/extensions/api/idle/idle_manager.cc b/chrome/browser/extensions/api/idle/idle_manager.cc
index ab883875b61a7016b643209a65368ac351684106..31f465dc72399b4d08081b3fc6652ef7e1eb84ca 100644
--- a/chrome/browser/extensions/api/idle/idle_manager.cc
+++ b/chrome/browser/extensions/api/idle/idle_manager.cc
@@ -121,10 +121,10 @@ IdleMonitor::IdleMonitor(IdleState initial_state)
IdleManager::IdleManager(Profile* profile)
: profile_(profile),
last_state_(IDLE_STATE_ACTIVE),
- weak_factory_(this),
idle_time_provider_(new DefaultIdleProvider()),
event_delegate_(new DefaultEventDelegate(profile)),
- extension_registry_observer_(this) {
+ extension_registry_observer_(this),
+ weak_factory_(this) {
}
IdleManager::~IdleManager() {
« no previous file with comments | « chrome/browser/extensions/api/idle/idle_manager.h ('k') | chrome/browser/extensions/api/streams_private/streams_private_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698