| 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 fc91ade21c16d38d9ac0c5b65b6c7bb78f6e74f3..a2f596deef32fa75549e117c90f3f341df3bd421 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();
|
| }
|
|
|
|
|