diff options
author | georgey@chromium.org <georgey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-16 22:39:29 +0000 |
---|---|---|
committer | georgey@chromium.org <georgey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-16 22:39:29 +0000 |
commit | 21e1e7dd3aaec080af56a91c7054565234f5e289 (patch) | |
tree | 41fc890083e625d86c10583da0039e7d29648efe /chrome/browser/autofill/autofill_dialog_gtk.cc | |
parent | 913a035151d2d72c3db96674edf67a121fa1d832 (diff) | |
download | chromium_src-21e1e7dd3aaec080af56a91c7054565234f5e289.zip chromium_src-21e1e7dd3aaec080af56a91c7054565234f5e289.tar.gz chromium_src-21e1e7dd3aaec080af56a91c7054565234f5e289.tar.bz2 |
Fixes first and third points in the bug "Autofill profile dialog box polish items".
Adds correct expand icons to the AutoFill dialog. The icons were added in a separate CL.
Moves asynchronous access to the database inside the dialog (it now shows "Loading..." while db is being connected)
Also fixes memory leak.
BUG=36601
TEST=in the bug
Review URL: http://codereview.chromium.org/669076
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41780 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_dialog_gtk.cc')
-rw-r--r-- | chrome/browser/autofill/autofill_dialog_gtk.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/autofill/autofill_dialog_gtk.cc b/chrome/browser/autofill/autofill_dialog_gtk.cc index e447c21..d3bcb80 100644 --- a/chrome/browser/autofill/autofill_dialog_gtk.cc +++ b/chrome/browser/autofill/autofill_dialog_gtk.cc @@ -16,6 +16,7 @@ #include "chrome/browser/autofill/autofill_profile.h" #include "chrome/browser/autofill/credit_card.h" #include "chrome/browser/autofill/form_group.h" +#include "chrome/browser/autofill/personal_data_manager.h" #include "chrome/browser/gtk/gtk_util.h" #include "chrome/browser/gtk/options/options_layout_gtk.h" #include "chrome/browser/profile.h" @@ -893,12 +894,13 @@ void AutoFillDialog::AddCreditCard(const CreditCard& credit_card) { /////////////////////////////////////////////////////////////////////////////// // Factory/finder method: -void ShowAutoFillDialog(AutoFillDialogObserver* observer, - const std::vector<AutoFillProfile*>& profiles, - const std::vector<CreditCard*>& credit_cards, +void ShowAutoFillDialog(gfx::NativeWindow parent, + AutoFillDialogObserver* observer, Profile *profile) { if (!dialog) { - dialog = new AutoFillDialog(observer, profiles, credit_cards); + dialog = new AutoFillDialog(observer, + profile->GetPersonalDataManager()->profiles(), + profile->GetPersonalDataManager()->credit_cards()); } dialog->Show(); } |