}
virtual void WindowClosing() OVERRIDE {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
WebContents* tab = GetWebContentsForLogin();
if (tab)
}
virtual void DeleteDelegate() OVERRIDE {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
// The widget is going to delete itself; clear our pointer.
dialog_ = NULL;
}
virtual bool Cancel() OVERRIDE {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
CancelAuth();
return true;
}
virtual bool Accept() OVERRIDE {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
SetAuth(login_view_->GetUsername(), login_view_->GetPassword());
return true;
// LoginHandler:
virtual void BuildViewForPasswordManager(
- PasswordManager* manager,
+ password_manager::PasswordManager* manager,
const base::string16& explanation) OVERRIDE {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
// Create a new LoginView and set the model for it. The model (password
// manager) is owned by the WebContents, but the view is parented to the
CHECK(modal_delegate);
dialog_ = views::Widget::CreateWindowAsFramelessChild(
this, modal_delegate->GetWebContentsModalDialogHost()->GetHostView());
- web_contents_modal_dialog_manager->ShowDialog(dialog_->GetNativeView());
+ web_contents_modal_dialog_manager->ShowModalDialog(
+ dialog_->GetNativeView());
NotifyAuthNeeded();
}