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

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

Issue 2671493002: MD Settings: Fix some tests that break when run in Vulcanized mode. (Closed)
Patch Set: Undo Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/route.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/prefs/prefs.js
diff --git a/chrome/browser/resources/settings/prefs/prefs.js b/chrome/browser/resources/settings/prefs/prefs.js
index 4988cf0ea05699673893151be6e5b917d65e5b7a..15df5f2471f90b3c6d5c213c5b5b47f545930183 100644
--- a/chrome/browser/resources/settings/prefs/prefs.js
+++ b/chrome/browser/resources/settings/prefs/prefs.js
@@ -147,11 +147,17 @@
/** @type {SettingsPrivate} */
settingsApi_: /** @type {SettingsPrivate} */(chrome.settingsPrivate),
+ /** @override */
created: function() {
if (!CrSettingsPrefs.deferInitialization)
this.initialize();
},
+ /** @override */
+ detached: function() {
+ CrSettingsPrefs.resetForTesting();
+ },
+
/**
* @param {SettingsPrivate=} opt_settingsApi SettingsPrivate implementation
* to use (chrome.settingsPrivate by default).
« no previous file with comments | « no previous file | chrome/browser/resources/settings/route.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698