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

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: Fix unit test. Don't lock policy-forced extensions. 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..c219c7486d3272ba9c4160bca1e2c69ad6b934cc 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::IsExtensionLocked(const std::string& id) const {
+ return DoesExtensionHaveState(id, Extension::LOCKED);
+}
+
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