| Index: chrome/browser/ui/autofill/autofill_dialog_input.cc
|
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_input.cc b/chrome/browser/ui/autofill/autofill_dialog_input.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4ae4ab3c58779feb28a6f34b376fce709dc03dd4
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/autofill/autofill_dialog_input.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/ui/autofill/autofill_dialog_input.h"
|
| +
|
| +#include "base/command_line.h"
|
| +#include "chrome/browser/ui/autofill/autofill_dialog_input_i18n.h"
|
| +#include "chrome/browser/ui/autofill/autofill_dialog_input_static.h"
|
| +#include "chrome/common/chrome_switches.h"
|
| +
|
| +namespace autofill {
|
| +namespace common {
|
| +
|
| +// static
|
| +AutofillDialogInput* AutofillDialogInput::BuildInstance() {
|
| + if (CommandLine::ForCurrentProcess()->HasSwitch(
|
| + ::switches::kEnableAutofillAddressInternationalization)) {
|
| + return new AutofillDialogInputI18n();
|
| + }
|
| +
|
| + return new AutofillDialogInputStatic();
|
| +}
|
| +
|
| +} // namespace common
|
| +} // namespace autofill
|
|
|