diff options
author | droger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-04 15:52:13 +0000 |
---|---|---|
committer | droger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-04 15:52:13 +0000 |
commit | 5daf1d936323027ce9af4551e0c612500232c884 (patch) | |
tree | d07d40f4a0baf2234a583e1eed58d8659eebde6d /chrome/browser/autofill | |
parent | 3f7e599ab61cbafda54bbd5892505c6bcfef4131 (diff) | |
download | chromium_src-5daf1d936323027ce9af4551e0c612500232c884.zip chromium_src-5daf1d936323027ce9af4551e0c612500232c884.tar.gz chromium_src-5daf1d936323027ce9af4551e0c612500232c884.tar.bz2 |
Remove dependency from infobars on LoadCommittedDetails
To achieve componentization, all dependencies on content/ will be eventually
removed.
This CL removes dependency on content::LoadCommittedDetails by
introducing a NavigationDetails structure that is a subset of
content::LoadCommittedDetails.
BUG=354379
TBR=jochen
Review URL: https://codereview.chromium.org/218623022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill')
-rw-r--r-- | chrome/browser/autofill/autofill_cc_infobar_delegate.cc | 2 | ||||
-rw-r--r-- | chrome/browser/autofill/autofill_cc_infobar_delegate.h | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc index a3cebc1..81fa133 100644 --- a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc +++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc @@ -66,7 +66,7 @@ InfoBarDelegate::Type AutofillCCInfoBarDelegate::GetInfoBarType() const { } bool AutofillCCInfoBarDelegate::ShouldExpireInternal( - const content::LoadCommittedDetails& details) const { + const NavigationDetails& details) const { // The user has submitted a form, causing the page to navigate elsewhere. We // don't want the infobar to be expired at this point, because the user won't // get a chance to answer the question. diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.h b/chrome/browser/autofill/autofill_cc_infobar_delegate.h index fce8616..a853c89 100644 --- a/chrome/browser/autofill/autofill_cc_infobar_delegate.h +++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.h @@ -17,10 +17,6 @@ class CreditCard; class PersonalDataManager; -namespace content { -struct LoadCommittedDetails; -} - namespace autofill { // An InfoBar delegate that enables the user to allow or deny storing credit @@ -54,7 +50,7 @@ class AutofillCCInfoBarDelegate : public ConfirmInfoBarDelegate { virtual int GetIconID() const OVERRIDE; virtual Type GetInfoBarType() const OVERRIDE; virtual bool ShouldExpireInternal( - const content::LoadCommittedDetails& details) const OVERRIDE; + const NavigationDetails& details) const OVERRIDE; virtual base::string16 GetMessageText() const OVERRIDE; virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; virtual bool Accept() OVERRIDE; |