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

Unified Diff: extensions/browser/extension_prefs.cc

Issue 264763002: Support remote installation of extensions and apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 years, 7 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: extensions/browser/extension_prefs.cc
diff --git a/extensions/browser/extension_prefs.cc b/extensions/browser/extension_prefs.cc
index e9b4a765facb73e3a9b1ca20767a5690a221f6dd..4443ee67d076bc4c29ba49e712b051c116a95d76 100644
--- a/extensions/browser/extension_prefs.cc
+++ b/extensions/browser/extension_prefs.cc
@@ -795,6 +795,12 @@ int ExtensionPrefs::GetDisableReasons(const std::string& extension_id) const {
return Extension::DISABLE_NONE;
}
+bool ExtensionPrefs::HasDisableReason(
+ const std::string& extension_id,
+ Extension::DisableReason disable_reason) const {
+ return (GetDisableReasons(extension_id) & disable_reason) != 0;
+}
+
void ExtensionPrefs::AddDisableReason(const std::string& extension_id,
Extension::DisableReason disable_reason) {
ModifyDisableReason(extension_id, disable_reason, DISABLE_REASON_ADD);

Powered by Google App Engine
This is Rietveld 408576698