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

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

Issue 25620002: [rac] Use i18n address inputs with --enable-autofill-address-i18n flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/autofill/autofill_dialog_input.h"
6
7 #include "base/command_line.h"
8 #include "chrome/browser/ui/autofill/autofill_dialog_input_i18n.h"
9 #include "chrome/browser/ui/autofill/autofill_dialog_input_static.h"
10 #include "chrome/common/chrome_switches.h"
11
12 namespace autofill {
13 namespace common {
14
15 // static
16 AutofillDialogInput* AutofillDialogInput::BuildInstance() {
17 if (CommandLine::ForCurrentProcess()->HasSwitch(
18 ::switches::kEnableAutofillAddressInternationalization)) {
19 return new AutofillDialogInputI18n();
20 }
21
22 return new AutofillDialogInputStatic();
23 }
24
25 } // namespace common
26 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698