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

Unified Diff: extensions/browser/extension_prefs.cc

Issue 695133005: Temporarily disable extensions and sync while a profile is locked - Profiles Approach (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compiling is awesome Created 6 years, 1 month 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 4d476f52a408a5c429f06dbd2ebc0e38aa9ecb10..dbd710e9b7d5439c5cf933e309b0d9ae17f6d1e5 100644
--- a/extensions/browser/extension_prefs.cc
+++ b/extensions/browser/extension_prefs.cc
@@ -1509,6 +1509,10 @@ scoped_ptr<ExtensionPrefs::ExtensionsInfo> ExtensionPrefs::
return extensions_info.Pass();
}
+bool ExtensionPrefs::IsExtensionBlocked(const std::string& id) const {
+ return DoesExtensionHaveState(id, Extension::BLOCKED);
+}
+
bool ExtensionPrefs::IsEphemeralApp(const std::string& extension_id) const {
if (ReadPrefAsBooleanAndReturn(extension_id, kPrefEphemeralApp))
return true;

Powered by Google App Engine
This is Rietveld 408576698