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

Unified Diff: components/autofill/core/browser/autofill_manager.h

Issue 286243002: Mac: Autofill should not immediately request access to address book. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup. Created 6 years, 7 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/autofill_manager.h
diff --git a/components/autofill/core/browser/autofill_manager.h b/components/autofill/core/browser/autofill_manager.h
index 856be0e989ba737b169f5ee3db628941cfe3cd1a..098b184e3bdf55d8b3c4ceb333cd9bd445d306e0 100644
--- a/components/autofill/core/browser/autofill_manager.h
+++ b/components/autofill/core/browser/autofill_manager.h
@@ -83,6 +83,14 @@ class AutofillManager : public AutofillDownloadManager::Observer {
void SetExternalDelegate(AutofillExternalDelegate* delegate);
void ShowAutofillSettings();
+ // Whether an autofill cell should be shown to prompt the user to give
+ // Chromium access to the user's address book, given a particular form field
+ // inside of a form.
+ bool ShouldShowAccessMacContacts(const FormData& data,
+ const FormFieldData& fieldData);
Ilya Sherman 2014/05/16 22:54:02 This method is too closely tied to the UI. Instea
erikchen 2014/05/19 20:58:32 I've done as you've suggested and split the logic
+ // Invokes the system prompt to give Chromium access to the user's address
+ // book. This method is blocking.
+ void AccessMacContacts();
Ilya Sherman 2014/05/16 22:54:02 These methods should only be available on Mac OS X
erikchen 2014/05/19 20:58:32 I've added #if defined(OS_MACOSX) to all the mac s
// Called from our external delegate so they cannot be private.
virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action,

Powered by Google App Engine
This is Rietveld 408576698