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

Side by Side Diff: chrome/test/data/webui/settings/passwords_and_forms_browsertest.js

Issue 1273053002: Use Smart Lock preference instead of Chrome Password manager preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@reconcile_yolo_settings
Patch Set: Use Smart Lock preference instead of Chrome Password manager preference. Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** @fileoverview Runs the Polymer Passwords and Forms tests. */ 5 /** @fileoverview Runs the Polymer Passwords and Forms tests. */
6 6
7 /** @const {string} Path to root from chrome/test/data/webui/settings/. */ 7 /** @const {string} Path to root from chrome/test/data/webui/settings/. */
8 var ROOT_PATH = '../../../../../'; 8 var ROOT_PATH = '../../../../../';
9 9
10 // Polymer BrowserTest fixture. 10 // Polymer BrowserTest fixture.
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 return new Promise(function(resolve) { 265 return new Promise(function(resolve) {
266 CrSettingsPrefs.deferInitialization = true; 266 CrSettingsPrefs.deferInitialization = true;
267 var prefs = document.createElement('settings-prefs'); 267 var prefs = document.createElement('settings-prefs');
268 prefs.initialize(new settings.FakeSettingsPrivate([ 268 prefs.initialize(new settings.FakeSettingsPrivate([
269 { 269 {
270 key: 'autofill.enabled', 270 key: 'autofill.enabled',
271 type: chrome.settingsPrivate.PrefType.BOOLEAN, 271 type: chrome.settingsPrivate.PrefType.BOOLEAN,
272 value: autofill, 272 value: autofill,
273 }, 273 },
274 { 274 {
275 key: 'profile.password_manager_enabled', 275 key: 'credentials_enable_service',
276 type: chrome.settingsPrivate.PrefType.BOOLEAN, 276 type: chrome.settingsPrivate.PrefType.BOOLEAN,
277 value: passwords, 277 value: passwords,
278 }, 278 },
279 ])); 279 ]));
280 280
281 CrSettingsPrefs.initialized.then(function() { 281 CrSettingsPrefs.initialized.then(function() {
282 resolve(prefs); 282 resolve(prefs);
283 }); 283 });
284 }); 284 });
285 }, 285 },
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 assertTrue(element.$.autofillManagerButton.hasAttribute('actionable')); 435 assertTrue(element.$.autofillManagerButton.hasAttribute('actionable'));
436 assertTrue(element.$.passwordManagerButton.hasAttribute('actionable')); 436 assertTrue(element.$.passwordManagerButton.hasAttribute('actionable'));
437 437
438 self.destroyPrefs(prefs); 438 self.destroyPrefs(prefs);
439 }); 439 });
440 }); 440 });
441 }); 441 });
442 442
443 mocha.run(); 443 mocha.run();
444 }); 444 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698