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

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

Issue 324913004: Skeleton GCMAppHandler for Push API (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 d4ab7028ab9c9d37dcb7bd9edae2f13c0fb56062..0c640b5dfbfd808f1cce35ea46761a90052082ab 100644
--- a/chrome/browser/services/gcm/gcm_profile_service.cc
+++ b/chrome/browser/services/gcm/gcm_profile_service.cc
@@ -49,7 +49,6 @@ GCMProfileService::GCMProfileService(Profile* profile)
DCHECK(!profile->IsOffTheRecord());
driver_.reset(new GCMDriverAndroid);
-}
fgorski 2014/06/10 17:09:27 I think I prefer having 2 distinct method. If you
johnme 2014/06/10 20:33:48 Done, in fact I moved this code to PushMessagingSe
#else
GCMProfileService::GCMProfileService(
Profile* profile,
@@ -66,9 +65,14 @@ GCMProfileService::GCMProfileService(
LoginUIServiceFactory::GetForProfile(profile_))),
profile_->GetPath().Append(chrome::kGCMStoreDirname),
profile_->GetRequestContext());
-}
#endif // defined(OS_ANDROID)
+ base::Closure lazy_load_app_handlers = base::Bind(
+ PushMessagingServiceImpl::LazyLoadAppHandlers,
+ push_messaging_service_.GetWeakPtr());
+ driver_.SetLazyLoadAppHandlersClosure(lazy_load_app_handlers);
+}
+
GCMProfileService::GCMProfileService()
: profile_(NULL),
push_messaging_service_(this) {

Powered by Google App Engine
This is Rietveld 408576698