| Index: chrome/browser/ui/auto_login_prompter.cc
|
| diff --git a/chrome/browser/ui/auto_login_prompter.cc b/chrome/browser/ui/auto_login_prompter.cc
|
| index be460f8141d5330beadcc115a731b32f7c6b1959..267154b3e4a8ed9a1bfd5917cad3aa620894dd52 100644
|
| --- a/chrome/browser/ui/auto_login_prompter.cc
|
| +++ b/chrome/browser/ui/auto_login_prompter.cc
|
| @@ -20,7 +20,7 @@
|
| #include "chrome/browser/sync/profile_sync_service_factory.h"
|
| #include "chrome/browser/tab_contents/tab_util.h"
|
| #include "chrome/browser/ui/auto_login_info_bar_delegate.h"
|
| -#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
|
| +#include "chrome/browser/ui/tab_contents/tab_contents.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/pref_names.h"
|
| @@ -153,11 +153,10 @@ void AutoLoginPrompter::Observe(int type,
|
| const content::NotificationSource& source,
|
| const content::NotificationDetails& details) {
|
| if (type == content::NOTIFICATION_LOAD_STOP) {
|
| - TabContentsWrapper* wrapper =
|
| - TabContentsWrapper::GetCurrentWrapperForContents(web_contents_);
|
| - // |wrapper| is NULL for WebContents hosted in WebDialog.
|
| - if (wrapper) {
|
| - InfoBarTabHelper* infobar_helper = wrapper->infobar_tab_helper();
|
| + TabContents* tab_contents = TabContents::FromWebContents(web_contents_);
|
| + // |tab_contents| is NULL for WebContents hosted in WebDialog.
|
| + if (tab_contents) {
|
| + InfoBarTabHelper* infobar_helper = tab_contents->infobar_tab_helper();
|
| infobar_helper->AddInfoBar(new AutoLoginInfoBarDelegate(infobar_helper,
|
| username_,
|
| args_));
|
|
|