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

Unified Diff: chrome/browser/cocoa/preferences_window_controller.mm

Issue 558066: Autofill dialog for the Mac. This is UI only at this point. The UI is not h... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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
« no previous file with comments | « chrome/browser/cocoa/preferences_window_controller.h ('k') | chrome/browser/cocoa/section_separator_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/preferences_window_controller.mm
===================================================================
--- chrome/browser/cocoa/preferences_window_controller.mm (revision 38653)
+++ chrome/browser/cocoa/preferences_window_controller.mm (working copy)
@@ -12,6 +12,9 @@
#include "base/string16.h"
#include "base/string_util.h"
#include "base/sys_string_conversions.h"
+#include "chrome/browser/autofill/autofill_dialog.h"
+#include "chrome/browser/autofill/autofill_type.h"
+#include "chrome/browser/autofill/personal_data_manager.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/browser_process.h"
@@ -1145,6 +1148,28 @@
[self launchKeychainAccess];
}
+// Called to show the Auto Fill Settings dialog.
+- (IBAction)showAutoFillSettings:(id)sender {
+ [self recordUserAction:"Options_ShowAutoFillSettings"];
+
+ // TODO(dhollowa): Need "n" of these. Create single entry for now.
+ // See http://crbug.com/33029.
+ std::vector<AutoFillProfile*> profiles;
+ AutoFillProfile profile(ASCIIToUTF16(""), 0);
+ profiles.push_back(&profile);
+
+ // TODO(dhollowa): Need "n" of these. Create single entry for now.
+ // See http://crbug.com/33029.
+ std::vector<CreditCard*> creditCards;
+ CreditCard creditCard(ASCIIToUTF16(""), 0);
+ creditCards.push_back(&creditCard);
+
+ // TODO(dhollowa): There are outstanding assertions in autofill back end.
+ // Hooking up with UI only until those issues are resolved.
+ // See http://crbug.com/33029.
+ ShowAutoFillDialog(NULL, profiles, creditCards);
+}
+
// Called to import data from other browsers (Safari, Firefox, etc).
- (IBAction)importData:(id)sender {
UserMetrics::RecordAction("Import_ShowDlg", profile_);
« no previous file with comments | « chrome/browser/cocoa/preferences_window_controller.h ('k') | chrome/browser/cocoa/section_separator_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698