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

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

Issue 401103004: Revert of Use language-specific street address line separators (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/data_model_wrapper.h" 5 #include "chrome/browser/ui/autofill/data_model_wrapper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 85
86 bool DataModelWrapper::FillFormStructure( 86 bool DataModelWrapper::FillFormStructure(
87 const std::vector<ServerFieldType>& types, 87 const std::vector<ServerFieldType>& types,
88 const FormStructure::InputFieldComparator& compare, 88 const FormStructure::InputFieldComparator& compare,
89 FormStructure* form_structure) const { 89 FormStructure* form_structure) const {
90 return form_structure->FillFields( 90 return form_structure->FillFields(
91 types, 91 types,
92 compare, 92 compare,
93 base::Bind(&DataModelWrapper::GetInfo, base::Unretained(this)), 93 base::Bind(&DataModelWrapper::GetInfo, base::Unretained(this)),
94 GetLanguageCode(),
95 g_browser_process->GetApplicationLocale()); 94 g_browser_process->GetApplicationLocale());
96 } 95 }
97 96
98 DataModelWrapper::DataModelWrapper() {} 97 DataModelWrapper::DataModelWrapper() {}
99 98
100 // AutofillProfileWrapper 99 // AutofillProfileWrapper
101 100
102 AutofillProfileWrapper::AutofillProfileWrapper(const AutofillProfile* profile) 101 AutofillProfileWrapper::AutofillProfileWrapper(const AutofillProfile* profile)
103 : profile_(profile), 102 : profile_(profile),
104 variant_group_(NO_GROUP), 103 variant_group_(NO_GROUP),
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 } 393 }
395 394
396 return base::UTF8ToUTF16(address_->GetFieldValue(field)); 395 return base::UTF8ToUTF16(address_->GetFieldValue(field));
397 } 396 }
398 397
399 const std::string& I18nAddressDataWrapper::GetLanguageCode() const { 398 const std::string& I18nAddressDataWrapper::GetLanguageCode() const {
400 return address_->language_code; 399 return address_->language_code;
401 } 400 }
402 401
403 } // namespace autofill 402 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc ('k') | components/autofill/core/browser/autofill_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698