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

Unified Diff: components/autofill/core/browser/ui/autofill_dialog_common.cc

Issue 974323002: Componentize autofill dialog common code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: components/autofill/core/browser/ui/autofill_dialog_common.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_common.cc b/components/autofill/core/browser/ui/autofill_dialog_common.cc
similarity index 94%
rename from chrome/browser/ui/autofill/autofill_dialog_common.cc
rename to components/autofill/core/browser/ui/autofill_dialog_common.cc
index fd2cadce4333e02f406500bec99a1db0662909b2..4c7a575ab3573d8748c70fb9da0411ef418c5157 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_common.cc
+++ b/components/autofill/core/browser/ui/autofill_dialog_common.cc
@@ -2,10 +2,9 @@
// 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_common.h"
+#include "components/autofill/core/browser/ui/autofill_dialog_common.h"
#include "base/strings/utf_string_conversions.h"
-#include "chrome/browser/browser_process.h"
#include "components/autofill/core/browser/autofill_country.h"
#include "components/autofill/core/browser/autofill_field.h"
#include "components/autofill/core/browser/autofill_type.h"
@@ -37,9 +36,8 @@ bool ServerTypeEncompassesFieldType(ServerFieldType type,
// The page may ask for individual address lines; this roughly matches the
// street address blob.
- if (server_type == ADDRESS_HOME_LINE1 ||
- server_type == ADDRESS_HOME_LINE2 ||
- server_type == ADDRESS_HOME_LINE3) {
+ if (server_type == ADDRESS_HOME_LINE1 || server_type == ADDRESS_HOME_LINE2 ||
+ server_type == ADDRESS_HOME_LINE3) {
return autofill_type.GetStorableType() == ADDRESS_HOME_STREET_ADDRESS;
}

Powered by Google App Engine
This is Rietveld 408576698