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

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

Issue 334653006: mac: Prevent Address Book permissions dialog from erroneously appearing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: First. Created 6 years, 6 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
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_PERSONAL_DATA_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 #if defined(OS_MACOSX) && !defined(OS_IOS) 203 #if defined(OS_MACOSX) && !defined(OS_IOS)
204 // If Chrome has not prompted for access to the user's address book, the 204 // If Chrome has not prompted for access to the user's address book, the
205 // method prompts the user for permission and blocks the process. Otherwise, 205 // method prompts the user for permission and blocks the process. Otherwise,
206 // this method has no effect. The return value reflects whether the user was 206 // this method has no effect. The return value reflects whether the user was
207 // prompted with a modal dialog. 207 // prompted with a modal dialog.
208 bool AccessAddressBook(); 208 bool AccessAddressBook();
209 209
210 // Whether an autofill suggestion should be displayed to prompt the user to 210 // Whether an autofill suggestion should be displayed to prompt the user to
211 // grant Chrome access to the user's address book. 211 // grant Chrome access to the user's address book.
212 bool ShouldShowAccessAddressBookSuggestion(AutofillType type); 212 bool ShouldShowAccessAddressBookSuggestion(AutofillType type);
213
214 // The Chrome binary is in the process of being changed, or has been changed.
Ilya Sherman 2014/06/14 01:18:51 Please indicate why this method is relevant/import
erikchen 2014/06/16 20:30:46 Done.
215 void BinaryChanging();
213 #endif // defined(OS_MACOSX) && !defined(OS_IOS) 216 #endif // defined(OS_MACOSX) && !defined(OS_IOS)
214 217
215 protected: 218 protected:
216 // Only PersonalDataManagerFactory and certain tests can create instances of 219 // Only PersonalDataManagerFactory and certain tests can create instances of
217 // PersonalDataManager. 220 // PersonalDataManager.
218 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast); 221 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast);
219 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, AutofillIsEnabledAtStartup); 222 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, AutofillIsEnabledAtStartup);
220 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest, 223 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest,
221 AggregateExistingAuxiliaryProfile); 224 AggregateExistingAuxiliaryProfile);
222 friend class autofill::AutofillInteractiveTest; 225 friend class autofill::AutofillInteractiveTest;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 359
357 // An observer to listen for changes to prefs::kAutofillEnabled. 360 // An observer to listen for changes to prefs::kAutofillEnabled.
358 scoped_ptr<BooleanPrefMember> enabled_pref_; 361 scoped_ptr<BooleanPrefMember> enabled_pref_;
359 362
360 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 363 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
361 }; 364 };
362 365
363 } // namespace autofill 366 } // namespace autofill
364 367
365 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 368 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698