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

Unified Diff: components/autofill/core/browser/autofill_merge_unittest.cc

Issue 1151763013: [Autofill] remove *MultiInfo* functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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: components/autofill/core/browser/autofill_merge_unittest.cc
diff --git a/components/autofill/core/browser/autofill_merge_unittest.cc b/components/autofill/core/browser/autofill_merge_unittest.cc
index 91803e19c2193bad6ccab544c08c054ed91482bc..a737430386953dd0a3fa920e706516004b7b119f 100644
--- a/components/autofill/core/browser/autofill_merge_unittest.cc
+++ b/components/autofill/core/browser/autofill_merge_unittest.cc
@@ -64,14 +64,11 @@ std::string SerializeProfiles(const std::vector<AutofillProfile*>& profiles) {
result += "\n";
for (size_t j = 0; j < arraysize(kProfileFieldTypes); ++j) {
ServerFieldType type = kProfileFieldTypes[j];
- std::vector<base::string16> values;
- profiles[i]->GetRawMultiInfo(type, &values);
- for (size_t k = 0; k < values.size(); ++k) {
- result += AutofillType(type).ToString();
- result += kFieldSeparator;
- result += base::UTF16ToUTF8(values[k]);
- result += "\n";
- }
+ base::string16 value = profiles[i]->GetRawInfo(type);
+ result += AutofillType(type).ToString();
+ result += kFieldSeparator;
+ result += base::UTF16ToUTF8(value);
+ result += "\n";
}
}

Powered by Google App Engine
This is Rietveld 408576698