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

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

Issue 124533003: Add country combobox to change country and rebuild address inputs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 257
258 case SECTION_CC: 258 case SECTION_CC:
259 return AutofillMetrics::DIALOG_UI_CC_SELECTED_SUGGESTION_CHANGED; 259 return AutofillMetrics::DIALOG_UI_CC_SELECTED_SUGGESTION_CHANGED;
260 } 260 }
261 261
262 NOTREACHED(); 262 NOTREACHED();
263 return AutofillMetrics::NUM_DIALOG_UI_EVENTS; 263 return AutofillMetrics::NUM_DIALOG_UI_EVENTS;
264 } 264 }
265 265
266 base::string16 GetHardcodedValueForType(ServerFieldType type) { 266 base::string16 GetHardcodedValueForType(ServerFieldType type) {
267 // TODO(dbeam): remove this entire function when i18n inputs are the default.
268 if (IsI18nInputEnabled())
269 return base::string16();
270
267 if (AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) { 271 if (AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) {
268 AutofillCountry country("US", g_browser_process->GetApplicationLocale()); 272 AutofillCountry country("US", g_browser_process->GetApplicationLocale());
269 return country.name(); 273 return country.name();
270 } 274 }
271 275
272 return base::string16(); 276 return base::string16();
273 } 277 }
274 278
275 } // namespace common 279 } // namespace common
276 } // namespace autofill 280 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698