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

Unified Diff: chrome/browser/extensions/api/autofill_private/autofill_private_api.cc

Issue 2681163002: Swap City and State fields that were being saved incorrectly. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/autofill_private/autofill_private_api.cc
diff --git a/chrome/browser/extensions/api/autofill_private/autofill_private_api.cc b/chrome/browser/extensions/api/autofill_private/autofill_private_api.cc
index 6adbbac3568e1fbf883a9ed3e219a2887868cb11..72c7af103cbdd2deab6b24828431e872bbe3c41a 100644
--- a/chrome/browser/extensions/api/autofill_private/autofill_private_api.cc
+++ b/chrome/browser/extensions/api/autofill_private/autofill_private_api.cc
@@ -213,13 +213,13 @@ ExtensionFunction::ResponseAction AutofillPrivateSaveAddressFunction::Run() {
if (address->address_level1) {
profile.SetRawInfo(
- autofill::ADDRESS_HOME_CITY,
+ autofill::ADDRESS_HOME_STATE,
base::UTF8ToUTF16(*address->address_level1));
}
if (address->address_level2) {
profile.SetRawInfo(
- autofill::ADDRESS_HOME_STATE,
+ autofill::ADDRESS_HOME_CITY,
base::UTF8ToUTF16(*address->address_level2));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698