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

Unified Diff: chrome/browser/autofill/autofill_manager.cc

Issue 555023: Notify the AutoFillManager when the user clicks "Apply" or "OK". Adds an Aut... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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/autofill/autofill_manager.h ('k') | chrome/browser/autofill/credit_card.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_manager.cc
===================================================================
--- chrome/browser/autofill/autofill_manager.cc (revision 36570)
+++ chrome/browser/autofill/autofill_manager.cc (working copy)
@@ -7,6 +7,7 @@
#include <string>
#include "base/command_line.h"
+#include "chrome/browser/autofill/autofill_dialog.h"
#include "chrome/browser/autofill/autofill_infobar_delegate.h"
#include "chrome/browser/autofill/form_structure.h"
#include "chrome/browser/autofill/personal_data_manager.h"
@@ -59,6 +60,12 @@
}
}
+void AutoFillManager::OnAutoFillDialogApply(
+ const std::vector<AutoFillProfile>& profiles,
+ const std::vector<CreditCard>& credit_cards) {
+ // TODO(jhawkins): Pass the profile data onto the PersonalDataManager.
+}
+
void AutoFillManager::DeterminePossibleFieldTypes(
FormStructure* form_structure) {
// TODO(jhawkins): Update field text.
@@ -86,7 +93,11 @@
PrefService* prefs = tab_contents_->profile()->GetPrefs();
prefs->SetBoolean(prefs::kAutoFillEnabled, true);
- // TODO(jhawkins): AutoFillDialog
+ // TODO(jhawkins): Actually send in the real profiles and credit cards from
+ // the personal data manager.
+ std::vector<AutoFillProfile> profiles;
+ std::vector<CreditCard> credit_cards;
+ ShowAutoFillDialog(this, profiles, credit_cards);
HandleSubmit();
}
« no previous file with comments | « chrome/browser/autofill/autofill_manager.h ('k') | chrome/browser/autofill/credit_card.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698