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

Side by Side Diff: components/autofill/core/browser/detail_input.cc

Issue 974323002: Componentize autofill dialog common code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing includes Created 5 years, 9 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
OLDNEW
(Empty)
1 // Copyright 2015 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 "components/autofill/core/browser/detail_input.h"
6
7 namespace autofill {
8
9 // Street address is multi-line, except in countries where it shares a line
10 // with other inputs (such as Coite d'Ivoire).
11 bool DetailInput::IsMultiline() const {
12 return (type == ADDRESS_HOME_STREET_ADDRESS ||
13 type == ADDRESS_BILLING_STREET_ADDRESS) &&
14 length == DetailInput::LONG;
15 }
16
17 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/detail_input.h ('k') | components/autofill/core/browser/dialog_section.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698