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

Unified Diff: chrome/browser/notifications/message_center_notification_manager.h

Issue 1103713003: win: Move a few WeakPtrFactories to the end of their containing classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/notifications/message_center_notification_manager.h
diff --git a/chrome/browser/notifications/message_center_notification_manager.h b/chrome/browser/notifications/message_center_notification_manager.h
index 2806ef50489f8be2ba4e26225d762de8caa7b141..986f9cc1c1e2ce157f4944fe09af0e3958f86a87 100644
--- a/chrome/browser/notifications/message_center_notification_manager.h
+++ b/chrome/browser/notifications/message_center_notification_manager.h
@@ -138,9 +138,6 @@ class MessageCenterNotificationManager
// The first-run balloon will be shown |first_run_idle_timeout_| after all
// popups go away and the user has notifications in the message center.
base::TimeDelta first_run_idle_timeout_;
-
- // Provides weak pointers for the purpose of the first run timer.
- base::WeakPtrFactory<MessageCenterNotificationManager> weak_factory_;
#endif
scoped_ptr<message_center::NotifierSettingsProvider> settings_provider_;
@@ -156,6 +153,11 @@ class MessageCenterNotificationManager
// Keeps track of notifications specific to Google Now for UMA purposes.
GoogleNowNotificationStatsCollector google_now_stats_collector_;
+#if defined(OS_WIN)
+ // Provides weak pointers for the purpose of the first run timer.
+ base::WeakPtrFactory<MessageCenterNotificationManager> weak_factory_;
+#endif
+
DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager);
};

Powered by Google App Engine
This is Rietveld 408576698