| Index: chrome/browser/ui/auto_login_infobar_delegate.cc
|
| diff --git a/chrome/browser/ui/auto_login_infobar_delegate.cc b/chrome/browser/ui/auto_login_infobar_delegate.cc
|
| index dea99b4254f8d73d02442feafe44d356db165fef..eaebd9919472bb7a70b2b8b751c966f662f63eac 100644
|
| --- a/chrome/browser/ui/auto_login_infobar_delegate.cc
|
| +++ b/chrome/browser/ui/auto_login_infobar_delegate.cc
|
| @@ -13,6 +13,7 @@
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/google/google_util.h"
|
| #include "chrome/browser/infobars/infobar.h"
|
| +#include "chrome/browser/infobars/infobar_manager.h"
|
| #include "chrome/browser/infobars/infobar_service.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/signin/profile_oauth2_token_service.h"
|
| @@ -147,13 +148,16 @@ bool AutoLoginInfoBarDelegate::Create(content::WebContents* web_contents,
|
| #else
|
| typedef AutoLoginInfoBarDelegate Delegate;
|
| #endif
|
| - return !!infobar_service->AddInfoBar(ConfirmInfoBarDelegate::CreateInfoBar(
|
| - scoped_ptr<ConfirmInfoBarDelegate>(new Delegate(params, profile))));
|
| + return !!infobar_service->AddInfoBar(
|
| + ConfirmInfoBarDelegate::CreateInfoBar(scoped_ptr<ConfirmInfoBarDelegate>(
|
| + new Delegate(web_contents, params, profile))));
|
| }
|
|
|
| -AutoLoginInfoBarDelegate::AutoLoginInfoBarDelegate(const Params& params,
|
| - Profile* profile)
|
| - : ConfirmInfoBarDelegate(),
|
| +AutoLoginInfoBarDelegate::AutoLoginInfoBarDelegate(
|
| + content::WebContents* web_contents,
|
| + const Params& params,
|
| + Profile* profile)
|
| + : ContentConfirmInfoBarDelegate(web_contents),
|
| params_(params),
|
| profile_(profile),
|
| button_pressed_(false) {
|
|
|