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

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

Issue 409883006: GCM: D-Bus methods for wake-on-packet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move chromeos-specific code to gcm profile creation Created 6 years, 4 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 e431d8dcb56063034908d189293b21ce40727e17..aca1cf6ae2e82e457df2a2f31fc6801a5df32393 100644
--- a/chrome/browser/services/gcm/gcm_profile_service.cc
+++ b/chrome/browser/services/gcm/gcm_profile_service.cc
@@ -14,6 +14,9 @@
#include "components/gcm_driver/gcm_driver_android.h"
#else
#include "base/files/file_path.h"
+#if defined(OS_CHROMEOS)
+#include "chrome/browser/services/gcm/chromeos_gcm_app_handler.h"
+#endif
#include "chrome/browser/services/gcm/gcm_desktop_utils.h"
#include "chrome/browser/signin/profile_identity_provider.h"
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
@@ -121,6 +124,11 @@ GCMProfileService::GCMProfileService(
profile_->GetPath().Append(chrome::kGCMStoreDirname),
profile_->GetRequestContext());
+#ifdef CHROMEOS
+ driver_->AddAppHandler("ChromeOSGCMAppHandler",
+ new gcm::ChromeOSGCMAppHandler());
Nicolas Zea 2014/08/21 21:22:19 Note that this will leak, as the driver doesn't ta
fgorski 2014/08/21 21:38:26 there is no namespace specified for that purpose.
Luigi Semenzato 2014/08/22 01:08:19 Done, although I suspect the app id needs to be de
+#endif
+
identity_observer_.reset(new IdentityObserver(profile, driver_.get()));
}
#endif // defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698