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

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

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: chrome/browser/extensions/extension_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index 556adb0025afdec9c42b162005a9cf4879179df8..ddbd1cbbfa61b06f80b9c1cb8930608a92b9b102 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -295,6 +295,15 @@ class ExtensionService
// |was_installed_by_default| flag.
void DisableUserExtensions(const std::vector<std::string>& except_ids);
+ // Extensions specified by |extension_ids| should become locked. Extensions
not at google - send to devlin 2014/11/12 18:23:00 You might want to mention that "locking" does impl
Mike Lerman 2014/11/12 20:58:42 Done.
+ // are no longer considered enabled or disabled. Blacklisted extensions are
+ // now considered both blacklisted and locked.
+ void LockAllExtensions();
+
+ // All locked extensions should revert to being either enabled or disabled
+ // as appropriate.
+ void UnlockAllLockedExtensions();
+
// Updates the |extension|'s granted permissions lists to include all
// permissions in the |extension|'s manifest and re-enables the
// extension.

Powered by Google App Engine
This is Rietveld 408576698