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

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

Issue 2693373004: Use Smart Lock preference instead of Chrome Password manager preference. (Closed)
Patch Set: 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 return new Promise(function(resolve) { 269 return new Promise(function(resolve) {
270 CrSettingsPrefs.deferInitialization = true; 270 CrSettingsPrefs.deferInitialization = true;
271 var prefs = document.createElement('settings-prefs'); 271 var prefs = document.createElement('settings-prefs');
272 prefs.initialize(new settings.FakeSettingsPrivate([ 272 prefs.initialize(new settings.FakeSettingsPrivate([
273 { 273 {
274 key: 'autofill.enabled', 274 key: 'autofill.enabled',
275 type: chrome.settingsPrivate.PrefType.BOOLEAN, 275 type: chrome.settingsPrivate.PrefType.BOOLEAN,
276 value: autofill, 276 value: autofill,
277 }, 277 },
278 { 278 {
279 key: 'profile.password_manager_enabled', 279 key: 'credentials_enable_service',
280 type: chrome.settingsPrivate.PrefType.BOOLEAN, 280 type: chrome.settingsPrivate.PrefType.BOOLEAN,
281 value: passwords, 281 value: passwords,
282 }, 282 },
283 ])); 283 ]));
284 284
285 CrSettingsPrefs.initialized.then(function() { 285 CrSettingsPrefs.initialized.then(function() {
286 resolve(prefs); 286 resolve(prefs);
287 }); 287 });
288 }); 288 });
289 }, 289 },
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 assertTrue(element.$.autofillManagerButton.hasAttribute('actionable')); 439 assertTrue(element.$.autofillManagerButton.hasAttribute('actionable'));
440 assertTrue(element.$.passwordManagerButton.hasAttribute('actionable')); 440 assertTrue(element.$.passwordManagerButton.hasAttribute('actionable'));
441 441
442 self.destroyPrefs(prefs); 442 self.destroyPrefs(prefs);
443 }); 443 });
444 }); 444 });
445 }); 445 });
446 446
447 mocha.run(); 447 mocha.run();
448 }); 448 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698