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

Unified Diff: chrome/test/data/webui/settings/passwords_and_forms_browsertest.js

Issue 2254113002: MD Settings: reduce complexity and overhead of prefs singleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SimplifyLanguages
Patch Set: Nit Created 4 years, 4 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 | « chrome/test/data/webui/settings/languages_tests.js ('k') | chrome/test/data/webui/settings/prefs_tests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/passwords_and_forms_browsertest.js
diff --git a/chrome/test/data/webui/settings/passwords_and_forms_browsertest.js b/chrome/test/data/webui/settings/passwords_and_forms_browsertest.js
index 56600d11343a76ed256338fd9a4bf4f415ac4636..f8e224b98d58bca57e2b8cd2e7a555983f05610f 100644
--- a/chrome/test/data/webui/settings/passwords_and_forms_browsertest.js
+++ b/chrome/test/data/webui/settings/passwords_and_forms_browsertest.js
@@ -269,8 +269,7 @@ PasswordsAndFormsBrowserTest.prototype = {
return new Promise(function(resolve) {
CrSettingsPrefs.deferInitialization = true;
var prefs = document.createElement('settings-prefs');
- document.body.appendChild(prefs);
- prefs.initializeForTesting(new settings.FakeSettingsPrivate([
+ prefs.initialize(new settings.FakeSettingsPrivate([
{
key: 'autofill.enabled',
type: chrome.settingsPrivate.PrefType.BOOLEAN,
« no previous file with comments | « chrome/test/data/webui/settings/languages_tests.js ('k') | chrome/test/data/webui/settings/prefs_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698