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

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

Issue 8060017: Ensure that --disable-extensions disables extension prefs from being enacted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split ExtensionPrefs constructor into constructor and Init function Created 9 years, 3 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/test_extension_prefs.h
diff --git a/chrome/browser/extensions/test_extension_prefs.h b/chrome/browser/extensions/test_extension_prefs.h
index 1723e560171766d9c51d31cdce48e7dcdb944d7b..25862dd42669da0b238c11fd780f436aa4ac4521 100644
--- a/chrome/browser/extensions/test_extension_prefs.h
+++ b/chrome/browser/extensions/test_extension_prefs.h
@@ -61,6 +61,10 @@ class TestExtensionPrefs {
PrefService* CreateIncognitoPrefService() const;
+ // Allows disabling the loading of preferences of extensions. Becomes
+ // active after calling RecreateExtensionPrefs(). Defaults to false.
+ void set_extensions_disabled(bool extensions_disabled);
+
protected:
ScopedTempDir temp_dir_;
FilePath preferences_file_;
@@ -70,6 +74,7 @@ class TestExtensionPrefs {
scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_;
private:
+ bool extensions_disabled_;
DISALLOW_COPY_AND_ASSIGN(TestExtensionPrefs);
};
« no previous file with comments | « chrome/browser/extensions/extension_prefs_unittest.cc ('k') | chrome/browser/extensions/test_extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698