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

Unified Diff: chrome/browser/services/gcm/gcm_profile_service.cc

Issue 317823007: Hook PushMessagingMessageFilter up to GCMDriver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/services/gcm/gcm_profile_service.cc
diff --git a/chrome/browser/services/gcm/gcm_profile_service.cc b/chrome/browser/services/gcm/gcm_profile_service.cc
index bb2d0c8cecdeebd7ef87e287f20c9680d3132a9a..6510e1536802707213bfbf10efdec55af711103b 100644
--- a/chrome/browser/services/gcm/gcm_profile_service.cc
+++ b/chrome/browser/services/gcm/gcm_profile_service.cc
@@ -45,7 +45,8 @@ void GCMProfileService::RegisterProfilePrefs(
GCMProfileService::GCMProfileService(
Profile* profile,
scoped_ptr<GCMClientFactory> gcm_client_factory)
- : profile_(profile) {
+ : profile_(profile),
+ push_messaging_service_(this) {
DCHECK(!profile->IsOffTheRecord());
#if defined(OS_ANDROID)
@@ -62,7 +63,9 @@ GCMProfileService::GCMProfileService(
#endif
}
-GCMProfileService::GCMProfileService() : profile_(NULL) {
+GCMProfileService::GCMProfileService()
+ : profile_(NULL),
+ push_messaging_service_(this) {
}
GCMProfileService::~GCMProfileService() {

Powered by Google App Engine
This is Rietveld 408576698