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

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

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 8 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 7e6ef5c25df76e73f89fe3df5a555967e629dbfe..61970adb5f0d0e81898712c94d5db8ec33e355e9 100644
--- a/chrome/browser/extensions/extension_gcm_app_handler.cc
+++ b/chrome/browser/extensions/extension_gcm_app_handler.cc
@@ -106,11 +106,11 @@ void ExtensionGCMAppHandler::OnExtensionLoaded(
void ExtensionGCMAppHandler::OnExtensionUnloaded(
content::BrowserContext* browser_context,
const Extension* extension,
- UnloadedExtensionInfo::Reason reason) {
+ UnloadedExtensionReason reason) {
if (!IsGCMPermissionEnabled(extension))
return;
- if (reason == UnloadedExtensionInfo::REASON_UPDATE &&
+ if (reason == UnloadedExtensionReason::UPDATE &&
GetGCMDriver()->app_handlers().size() >= 1) {
// When the extension is being updated, it will be first unloaded and then
// loaded again by ExtensionService::AddExtension. If the app handler for
@@ -138,7 +138,7 @@ void ExtensionGCMAppHandler::OnExtensionUnloaded(
// When the extention is being uninstalled, it will be unloaded first. We
// should not remove the app handler in this case and it will be handled
// in OnExtensionUninstalled.
- if (reason != UnloadedExtensionInfo::REASON_UNINSTALL)
+ if (reason != UnloadedExtensionReason::UNINSTALL)
RemoveAppHandler(extension->id());
}
« no previous file with comments | « chrome/browser/extensions/extension_gcm_app_handler.h ('k') | chrome/browser/extensions/extension_keybinding_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698