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

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

Issue 2627123002: Load Passwords and Autofill in the corresponding sub page. (Closed)
Patch Set: feedback 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
Index: chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
diff --git a/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js b/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
index b3ba1065034821444a687a32ef4345b10dd56e53..7545f0531964cd093ebdd7c2e794196f5a22b70e 100644
--- a/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
+++ b/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
@@ -126,9 +126,13 @@ SettingsAutofillSectionBrowserTest.prototype = {
* @private
*/
createAutofillSection_: function(addresses, creditCards) {
+ // Override the AutofillManagerImpl for testing.
+ this.autofillManager = new TestAutofillManager();
+ this.autofillManager.data.addresses = addresses;
+ this.autofillManager.data.creditCards = creditCards;
+ AutofillManagerImpl.instance_ = this.autofillManager;
+
var section = document.createElement('settings-autofill-section');
- section.addresses = addresses;
- section.creditCards = creditCards;
document.body.appendChild(section);
Polymer.dom.flush();
return section;

Powered by Google App Engine
This is Rietveld 408576698