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

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
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..38792e8bdc95537e9daaf4125aa2e763517ed3ec 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::REASON_DISABLE) {
ExtensionPrefs* prefs = ExtensionPrefs::Get(context_);
return (prefs->GetDisableReasons(extension_id) &
Extension::DISABLE_RELOAD) != 0;

Powered by Google App Engine
This is Rietveld 408576698