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

Unified Diff: chrome/browser/extensions/api/gcm/gcm_api.cc

Issue 914693002: Push API: Fix unsubscribing from GCM on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/gcm/gcm_api.cc
diff --git a/chrome/browser/extensions/api/gcm/gcm_api.cc b/chrome/browser/extensions/api/gcm/gcm_api.cc
index 75d7d18867aac2004a1dcc67f3e11e3f2eeaf617..a3f07de3e23ef93f402ff54051c1a63a20557d75 100644
--- a/chrome/browser/extensions/api/gcm/gcm_api.cc
+++ b/chrome/browser/extensions/api/gcm/gcm_api.cc
@@ -135,11 +135,17 @@ GcmUnregisterFunction::~GcmUnregisterFunction() {}
bool GcmUnregisterFunction::DoWork() {
UMA_HISTOGRAM_BOOLEAN("GCM.APICallUnregister", true);
+#if defined(OS_ANDROID)
+ LOG(FATAL) << "GcmUnregisterFunction is not implemented on Android";
jianli 2015/02/10 23:19:25 I think this extension related file is never linke
johnme 2015/02/12 19:15:25 I think that's right, but I wanted there to be a c
jianli 2015/02/12 20:03:30 If this is your purpose, you'd better use #error d
johnme 2015/02/13 19:11:56 Done (not sure what you meant by at the very begin
+#else
+ std::vector<std::string> sender_ids; // These are ignored on desktop.
GetGCMDriver()->Unregister(
extension()->id(),
+ sender_ids,
base::Bind(&GcmUnregisterFunction::CompleteFunctionWithResult, this));
return true;
+#endif
}
void GcmUnregisterFunction::CompleteFunctionWithResult(
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_gcm_app_handler.cc » ('j') | components/gcm_driver/gcm_driver_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698