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

Side by Side Diff: chrome/browser/ui/webui/options/autofill_options_handler.h

Issue 301343002: mac: Clean up autofill integration with Address Book. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autofill_cleanup2_base
Patch Set: Autofill test failures on Android. Undo a change to autofill_test_utils.cc. 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 28 matching lines...) Expand all
39 virtual void OnPersonalDataChanged() OVERRIDE; 39 virtual void OnPersonalDataChanged() OVERRIDE;
40 40
41 private: 41 private:
42 // Loads the strings for the address and credit card overlays. 42 // Loads the strings for the address and credit card overlays.
43 void SetAddressOverlayStrings(base::DictionaryValue* localized_strings); 43 void SetAddressOverlayStrings(base::DictionaryValue* localized_strings);
44 void SetCreditCardOverlayStrings(base::DictionaryValue* localized_strings); 44 void SetCreditCardOverlayStrings(base::DictionaryValue* localized_strings);
45 45
46 // Loads Autofill addresses and credit cards using the PersonalDataManager. 46 // Loads Autofill addresses and credit cards using the PersonalDataManager.
47 void LoadAutofillData(); 47 void LoadAutofillData();
48 48
49 #if defined(OS_MACOSX) && !defined(OS_IOS)
50 // The user wants to grant Chrome access to the user's Address Book.
51 // Immediately try to access the Address Book so that the blocking dialog is
52 // shown in context, rather than at a later, surprising time.
53 void AccessAddressBook(const base::ListValue* args);
54 #endif // defined(OS_MACOSX) && !defined(OS_IOS)
55
49 // Removes data from the PersonalDataManager. 56 // Removes data from the PersonalDataManager.
50 // |args| - A string, the GUID of the address or credit card to remove. 57 // |args| - A string, the GUID of the address or credit card to remove.
51 void RemoveData(const base::ListValue* args); 58 void RemoveData(const base::ListValue* args);
52 59
53 // Requests profile data for a specific address. Calls into WebUI with the 60 // Requests profile data for a specific address. Calls into WebUI with the
54 // loaded profile data to open the address editor. 61 // loaded profile data to open the address editor.
55 // |args| - A string, the GUID of the address to load. 62 // |args| - A string, the GUID of the address to load.
56 void LoadAddressEditor(const base::ListValue* args); 63 void LoadAddressEditor(const base::ListValue* args);
57 64
58 // Requests input form layout information for a specific country code. Calls 65 // Requests input form layout information for a specific country code. Calls
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // The personal data manager, used to load Autofill profiles and credit cards. 98 // The personal data manager, used to load Autofill profiles and credit cards.
92 // Unowned pointer, may not be NULL. 99 // Unowned pointer, may not be NULL.
93 autofill::PersonalDataManager* personal_data_; 100 autofill::PersonalDataManager* personal_data_;
94 101
95 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); 102 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler);
96 }; 103 };
97 104
98 } // namespace options 105 } // namespace options
99 106
100 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ 107 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698