Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: chrome/browser/ui/login/login_prompt_win.cc

Issue 7189019: Fix even more crashes. To help identify remaining crashes now and in the future, I have made the ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/login/login_prompt.h" 5 #include "chrome/browser/ui/login/login_prompt.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/password_manager/password_manager.h" 8 #include "chrome/browser/password_manager/password_manager.h"
9 #include "chrome/browser/tab_contents/tab_util.h" 9 #include "chrome/browser/tab_contents/tab_util.h"
10 #include "chrome/browser/ui/views/login_view.h" 10 #include "chrome/browser/ui/views/login_view.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 return true; 89 return true;
90 } 90 }
91 91
92 virtual views::View* GetInitiallyFocusedView() OVERRIDE { 92 virtual views::View* GetInitiallyFocusedView() OVERRIDE {
93 return login_view_->GetInitiallyFocusedView(); 93 return login_view_->GetInitiallyFocusedView();
94 } 94 }
95 95
96 virtual views::View* GetContentsView() OVERRIDE { 96 virtual views::View* GetContentsView() OVERRIDE {
97 return login_view_; 97 return login_view_;
98 } 98 }
99 virtual views::Widget* GetWidget() OVERRIDE {
100 return login_view_->GetWidget();
101 }
102 virtual const views::Widget* GetWidget() const OVERRIDE {
103 return login_view_->GetWidget();
104 }
99 105
100 // LoginHandler: 106 // LoginHandler:
101 107
102 virtual void BuildViewForPasswordManager( 108 virtual void BuildViewForPasswordManager(
103 PasswordManager* manager, 109 PasswordManager* manager,
104 const string16& explanation) OVERRIDE { 110 const string16& explanation) OVERRIDE {
105 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 111 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
106 112
107 // Create a new LoginView and set the model for it. The model 113 // Create a new LoginView and set the model for it. The model
108 // (password manager) is owned by the view's parent TabContents, 114 // (password manager) is owned by the view's parent TabContents,
(...skipping 21 matching lines...) Expand all
130 LoginView* login_view_; 136 LoginView* login_view_;
131 137
132 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin); 138 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin);
133 }; 139 };
134 140
135 // static 141 // static
136 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, 142 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info,
137 net::URLRequest* request) { 143 net::URLRequest* request) {
138 return new LoginHandlerWin(auth_info, request); 144 return new LoginHandlerWin(auth_info, request);
139 } 145 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698