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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_common.cc

Issue 137723008: Remove DataModelWrapper from android build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/browser/ui/autofill/autofill_dialog_common.h" 5 #include "chrome/browser/ui/autofill/autofill_dialog_common.h"
6 6
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "components/autofill/core/browser/autofill_country.h" 8 #include "components/autofill/core/browser/autofill_country.h"
9 #include "components/autofill/core/browser/autofill_field.h" 9 #include "components/autofill/core/browser/autofill_field.h"
10 #include "components/autofill/core/browser/autofill_type.h" 10 #include "components/autofill/core/browser/autofill_type.h"
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 return base::string16(); 269 return base::string16();
270 270
271 if (AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) { 271 if (AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) {
272 AutofillCountry country("US", g_browser_process->GetApplicationLocale()); 272 AutofillCountry country("US", g_browser_process->GetApplicationLocale());
273 return country.name(); 273 return country.name();
274 } 274 }
275 275
276 return base::string16(); 276 return base::string16();
277 } 277 }
278 278
279 std::vector<ServerFieldType> TypesFromInputs(const DetailInputs& inputs) {
280 std::vector<ServerFieldType> types;
281 for (size_t i = 0; i < inputs.size(); ++i) {
282 types.push_back(inputs[i].type);
283 }
284 return types;
285 }
286
279 } // namespace common 287 } // namespace common
280 } // namespace autofill 288 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698