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

Unified Diff: chrome/browser/extensions/extension_gcm_app_handler.cc

Issue 2111973002: Add support for GCM subtypes to desktop Instance ID implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid9push
Patch Set: Fix iOS compile Created 4 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/extensions/extension_gcm_app_handler.cc
diff --git a/chrome/browser/extensions/extension_gcm_app_handler.cc b/chrome/browser/extensions/extension_gcm_app_handler.cc
index 4a7cc24bff70f0866dce8d85c4af45cb6455435b..f1de7a940580347aa7eb1f8b885c05ea9f7b8fa3 100644
--- a/chrome/browser/extensions/extension_gcm_app_handler.cc
+++ b/chrome/browser/extensions/extension_gcm_app_handler.cc
@@ -141,10 +141,10 @@ void ExtensionGCMAppHandler::OnExtensionUninstalled(
if (IsGCMPermissionEnabled(extension)) {
// Let's first remove InstanceID data. GCM unregistration will be triggered
// after the asynchronous call is returned in OnDeleteIDCompleted.
- GetInstanceIDDriver()->GetInstanceID(extension->id())->DeleteID(
- base::Bind(&ExtensionGCMAppHandler::OnDeleteIDCompleted,
- weak_factory_.GetWeakPtr(),
- extension->id()));
+ GetInstanceIDDriver()
+ ->GetInstanceIDForExtensions(extension->id())
+ ->DeleteID(base::Bind(&ExtensionGCMAppHandler::OnDeleteIDCompleted,
+ weak_factory_.GetWeakPtr(), extension->id()));
}
}

Powered by Google App Engine
This is Rietveld 408576698