| OLD | NEW |
| (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 |
| OLD | NEW |