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

Side by Side Diff: chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc

Issue 21947003: [Autofill] Move FieldTypeGroup out of the AutofillType class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/android/autofill/autofill_dialog_view_android.h" 5 #include "chrome/browser/ui/android/autofill/autofill_dialog_view_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h" 8 #include "base/android/jni_array.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 // - otherwise, should show the "Edit..." button (as any "normal" items). 705 // - otherwise, should show the "Edit..." button (as any "normal" items).
706 } 706 }
707 707
708 return MENU_ITEM_BUTTON_TYPE_EDIT; 708 return MENU_ITEM_BUTTON_TYPE_EDIT;
709 } 709 }
710 710
711 // TODO(aruslan): Remove/fix this once http://crbug.com/230685 is closed. 711 // TODO(aruslan): Remove/fix this once http://crbug.com/230685 is closed.
712 namespace { 712 namespace {
713 713
714 bool IsCreditCardType(AutofillFieldType type) { 714 bool IsCreditCardType(AutofillFieldType type) {
715 return AutofillType(type).group() == AutofillType::CREDIT_CARD; 715 return AutofillType(type).group() == CREDIT_CARD;
716 } 716 }
717 717
718 class CollapsedAutofillProfileWrapper : public AutofillProfileWrapper { 718 class CollapsedAutofillProfileWrapper : public AutofillProfileWrapper {
719 public: 719 public:
720 explicit CollapsedAutofillProfileWrapper(const AutofillProfile* profile) 720 explicit CollapsedAutofillProfileWrapper(const AutofillProfile* profile)
721 : AutofillProfileWrapper(profile, 0) { 721 : AutofillProfileWrapper(profile, 0) {
722 } 722 }
723 virtual ~CollapsedAutofillProfileWrapper() { 723 virtual ~CollapsedAutofillProfileWrapper() {
724 } 724 }
725 725
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 856
857 if (label.empty()) 857 if (label.empty())
858 return false; 858 return false;
859 859
860 *label_to_set = label; 860 *label_to_set = label;
861 *sublabel_to_set = sublabel; 861 *sublabel_to_set = sublabel;
862 *icon_to_set = icon; 862 *icon_to_set = icon;
863 return true; 863 return true;
864 } 864 }
865 } // namespace autofill 865 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698