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

Side by Side Diff: components/autofill/core/browser/autofill_external_delegate.h

Issue 578383002: mac: Only show the access Address Book prompt a fixed number of times. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autofill-contacts
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Have we already shown Autofill suggestions for the field the user is 145 // Have we already shown Autofill suggestions for the field the user is
146 // currently editing? Used to keep track of state for metrics logging. 146 // currently editing? Used to keep track of state for metrics logging.
147 bool has_shown_popup_for_current_edit_; 147 bool has_shown_popup_for_current_edit_;
148 148
149 // The current data list values. 149 // The current data list values.
150 std::vector<base::string16> data_list_values_; 150 std::vector<base::string16> data_list_values_;
151 std::vector<base::string16> data_list_labels_; 151 std::vector<base::string16> data_list_labels_;
152 152
153 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; 153 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_;
154 154
155 #if defined(OS_MACOSX) && !defined(OS_IOS)
156 // Whether the access Address Book prompt has ever been shown for the current
157 // |query_form_|.
158 bool has_shown_address_book_prompt;
Evan Stade 2014/09/18 21:26:37 nit: I would not bother with the ifdef because tha
erikchen 2014/09/18 21:55:57 Done.
159 #endif // defined(OS_MACOSX) && !defined(OS_IOS)
160
155 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); 161 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate);
156 }; 162 };
157 163
158 } // namespace autofill 164 } // namespace autofill
159 165
160 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ 166 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698