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

Unified Diff: chrome/browser/apps/app_load_service.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
« no previous file with comments | « chrome/browser/apps/app_load_service.h ('k') | chrome/browser/autocomplete/shortcuts_extensions_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/app_load_service.cc
diff --git a/chrome/browser/apps/app_load_service.cc b/chrome/browser/apps/app_load_service.cc
index 1835b3dadb3d41329c7c12dea59a44289c97b650..cbf6cdc553733c202db317cf838bfeda3d751c66 100644
--- a/chrome/browser/apps/app_load_service.cc
+++ b/chrome/browser/apps/app_load_service.cc
@@ -130,7 +130,7 @@ void AppLoadService::Observe(int type,
void AppLoadService::OnExtensionUnloaded(
content::BrowserContext* browser_context,
const Extension* extension,
- extensions::UnloadedExtensionInfo::Reason reason) {
+ extensions::UnloadedExtensionReason reason) {
if (!extension->is_platform_app())
return;
@@ -145,8 +145,8 @@ void AppLoadService::OnExtensionUnloaded(
bool AppLoadService::WasUnloadedForReload(
const extensions::ExtensionId& extension_id,
- const extensions::UnloadedExtensionInfo::Reason reason) {
- if (reason == extensions::UnloadedExtensionInfo::REASON_DISABLE) {
+ const extensions::UnloadedExtensionReason reason) {
+ if (reason == extensions::UnloadedExtensionReason::DISABLE) {
ExtensionPrefs* prefs = ExtensionPrefs::Get(context_);
return (prefs->GetDisableReasons(extension_id) &
Extension::DISABLE_RELOAD) != 0;
« no previous file with comments | « chrome/browser/apps/app_load_service.h ('k') | chrome/browser/autocomplete/shortcuts_extensions_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698