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

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

Issue 2790823004: Retry reinstallation of corrupted policy extensions. (Closed)
Patch Set: address comments Created 3 years, 9 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: chrome/browser/extensions/extension_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index 059a5cf4a7187fb6e56bcc16a2d40bd01d9baed3..815f383cd1eb2ba2e89b726b7001c34882bb7f65 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -449,6 +449,10 @@ class ExtensionService
external_updates_finished_callback_ = callback;
}
+ void set_external_updates_disabled_for_test(bool value) {
+ external_updates_disabled_for_test_ = value;
+ }
+
private:
// Loads extensions specified via a command line flag/switch.
void LoadExtensionsFromCommandLineFlag(const char* switch_name);
@@ -677,6 +681,9 @@ class ExtensionService
// decide to abort.
bool browser_terminating_ = false;
+ // If set, call to CheckForExternalUpdates() will bail out.
+ bool external_updates_disabled_for_test_ = false;
+
// Set to true if this is the first time this ExtensionService has run.
// Used for specially handling external extensions that are installed the
// first time.
« no previous file with comments | « chrome/browser/extensions/content_verifier_browsertest.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698