Index: chrome/browser/ui/views/login_prompt_views.cc |
diff --git a/chrome/browser/ui/views/login_prompt_views.cc b/chrome/browser/ui/views/login_prompt_views.cc |
index 227b5064c26fe3020084971b476a65c8db5b9d27..b1c32b7dff5fddfe4f80a77923c8ace064d06b16 100644 |
--- a/chrome/browser/ui/views/login_prompt_views.cc |
+++ b/chrome/browser/ui/views/login_prompt_views.cc |
@@ -135,7 +135,7 @@ class LoginHandlerViews : public LoginHandler, |
// will occur via an InvokeLater on the UI thread, which is guaranteed |
// to happen after this is called (since this was InvokeLater'd first). |
WebContents* requesting_contents = GetWebContentsForLogin(); |
- SetDialog(new ConstrainedWindowViews(requesting_contents, this)); |
+ SetDialog(ConstrainedWindowViews::Create(requesting_contents, this)); |
NotifyAuthNeeded(); |
} |