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

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

Issue 1073153002: Code Cleanup for extension_prefs, as AddDisableReasons() is not required same behavior can be achie… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | extensions/browser/extension_prefs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index babd9753c7666c0e6e742e58a8d716fe28002c8b..5cd1701ae6e46d653b9cd655b455503bcbea199c 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -1805,7 +1805,8 @@ void ExtensionService::OnExtensionInstalled(
}
if (disable_reasons)
- extension_prefs_->AddDisableReasons(id, disable_reasons);
+ extension_prefs_->AddDisableReason(id,
+ static_cast<Extension::DisableReason>(disable_reasons));
const Extension::State initial_state =
disable_reasons == Extension::DISABLE_NONE ? Extension::ENABLED
« no previous file with comments | « no previous file | extensions/browser/extension_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698