| Index: chrome/browser/ui/login/login_prompt_win.cc
|
| diff --git a/chrome/browser/ui/login/login_prompt_win.cc b/chrome/browser/ui/login/login_prompt_win.cc
|
| index 1a9a4498d27208332dde1937ab4ec0eb4a01a290..93d855d64727088a09f1beba08d69cae855844e8 100644
|
| --- a/chrome/browser/ui/login/login_prompt_win.cc
|
| +++ b/chrome/browser/ui/login/login_prompt_win.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/utf_string_conversions.h"
|
| #include "chrome/browser/password_manager/password_manager.h"
|
| #include "chrome/browser/tab_contents/tab_util.h"
|
| +#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
|
| #include "chrome/browser/ui/views/constrained_window_views.h"
|
| #include "chrome/browser/ui/views/login_view.h"
|
| #include "content/browser/browser_thread.h"
|
| @@ -123,7 +124,10 @@ class LoginHandlerWin : public LoginHandler,
|
| // control). However, that's OK since any UI interaction in those functions
|
| // will occur via an InvokeLater on the UI thread, which is guaranteed
|
| // to happen after this is called (since this was InvokeLater'd first).
|
| - SetDialog(new ConstrainedWindowViews(GetTabContentsForLogin(), this));
|
| + TabContents* requesting_contents = GetTabContentsForLogin();
|
| + TabContentsWrapper* wrapper =
|
| + TabContentsWrapper::GetCurrentWrapperForContents(requesting_contents);
|
| + SetDialog(new ConstrainedWindowViews(wrapper, this));
|
| NotifyAuthNeeded();
|
| }
|
|
|
|
|