Chromium Code Reviews| 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 6a9f27538590fcbe1d3e37fd02c11e1cf78d389b..91ccb95b5159bbf5a2f6272c4debe496459f983c 100644 |
| --- a/chrome/browser/extensions/extension_gcm_app_handler.cc |
| +++ b/chrome/browser/extensions/extension_gcm_app_handler.cc |
| @@ -135,9 +135,14 @@ void ExtensionGCMAppHandler::OnExtensionUninstalled( |
| content::BrowserContext* browser_context, |
| const Extension* extension, |
| extensions::UninstallReason reason) { |
| +#if defined(OS_ANDROID) |
| +#error If this ever gets ported to Android, you must pass the real sender ID. |
|
jianli
2015/02/13 22:33:16
ditto.
johnme
2015/02/14 01:48:35
The patch no longer modifies this file.
|
| +#endif |
| if (IsGCMPermissionEnabled(extension)) { |
| + std::vector<std::string> sender_ids; // These are ignored on non-Android. |
| GetGCMDriver()->Unregister( |
| extension->id(), |
| + sender_ids, |
| base::Bind(&ExtensionGCMAppHandler::OnUnregisterCompleted, |
| weak_factory_.GetWeakPtr(), |
| extension->id())); |