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

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: Add missing @private 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 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 4af3b281b2d2e29f41b9d23298e93ba72ece6e58..856ab603f52a318498c92f5018493dffadca7482 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