diff options
author | sdefresne <sdefresne@chromium.org> | 2014-12-22 09:30:59 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-22 17:31:51 +0000 |
commit | 316da458d4d1ea846f078efaf71ae1f23964f42e (patch) | |
tree | 97be3296df5195fdd697ab72738145d800b5f93c /chrome/browser/ui/auto_login_infobar_delegate.cc | |
parent | a84772b7edfdc4f83e0b6b0831085657a8818334 (diff) | |
download | chromium_src-316da458d4d1ea846f078efaf71ae1f23964f42e.zip chromium_src-316da458d4d1ea846f078efaf71ae1f23964f42e.tar.gz chromium_src-316da458d4d1ea846f078efaf71ae1f23964f42e.tar.bz2 |
Remove dependency of infobars component on the embedder
Add a virtual method InfoBarManager::CreateConfirmInfoBar that allow the
embedder to use UI specific implementation of ConfirmInfoBar. Port all
client code to use this virtual method instead of the static method
ConfirmInfoBarDelegate::CreateInfoBar.
Implements the InfoBarService::CreateConfirmInfoBar method for the
different UI (views, android, cocoa) and for TestInfoBarManager.
BUG=386171
TBR=jam@chromium.org
TBR=jochen@chromium.org
Review URL: https://codereview.chromium.org/812823002
Cr-Commit-Position: refs/heads/master@{#309437}
Diffstat (limited to 'chrome/browser/ui/auto_login_infobar_delegate.cc')
-rw-r--r-- | chrome/browser/ui/auto_login_infobar_delegate.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/auto_login_infobar_delegate.cc b/chrome/browser/ui/auto_login_infobar_delegate.cc index 15e12c8..c4e20c0 100644 --- a/chrome/browser/ui/auto_login_infobar_delegate.cc +++ b/chrome/browser/ui/auto_login_infobar_delegate.cc @@ -136,7 +136,7 @@ bool AutoLoginInfoBarDelegate::Create(content::WebContents* web_contents, Profile* profile = Profile::FromBrowserContext(web_contents->GetBrowserContext()); typedef AutoLoginInfoBarDelegate Delegate; - return !!infobar_service->AddInfoBar(ConfirmInfoBarDelegate::CreateInfoBar( + return !!infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar( scoped_ptr<ConfirmInfoBarDelegate>(new Delegate(params, profile)))); } |