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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698