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

Unified Diff: chrome/browser/resources/settings/prefs/prefs_types.js

Issue 1447103002: MD Settings: FakeSettingsPrivate for tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: proto -> interface Created 5 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/resources/settings/prefs/prefs_types.js
diff --git a/chrome/browser/resources/settings/prefs/prefs_types.js b/chrome/browser/resources/settings/prefs/prefs_types.js
index 96c8649f1624b2a80306c15e12d304ed0d1d7453..01f41c8b77195e1caf10fd62dd67bfe8b2e41a90 100644
--- a/chrome/browser/resources/settings/prefs/prefs_types.js
+++ b/chrome/browser/resources/settings/prefs/prefs_types.js
@@ -28,6 +28,13 @@ var CrSettingsPrefs = (function() {
},
/**
+ * Whether to defer initialization. Used in testing to prevent premature
+ * initialization when intending to fake the settings API.
+ * @type {boolean}
+ */
+ deferInitialization: false,
+
+ /**
* Called to set up the promise and resolve methods.
* @private
*/
« no previous file with comments | « chrome/browser/resources/settings/prefs/prefs.js ('k') | chrome/browser/resources/settings/settings_private_interface.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698