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

Unified Diff: chrome/browser/ui/views/profiles/user_manager_view.cc

Issue 1336853003: Request focus for re-auth webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/user_manager_view.cc
diff --git a/chrome/browser/ui/views/profiles/user_manager_view.cc b/chrome/browser/ui/views/profiles/user_manager_view.cc
index eee57009c836e15fe946fafa290d10231d50b297..e915493f53dd5ddb13b0a91634da3c18a0060fc6 100644
--- a/chrome/browser/ui/views/profiles/user_manager_view.cc
+++ b/chrome/browser/ui/views/profiles/user_manager_view.cc
@@ -214,11 +214,12 @@ void UserManager::ShowReauthDialog(content::BrowserContext* browser_context,
// The dialog delegate will be deleted when the dialog closes and the created
// WebView's lifetime is managed by the delegate.
- views::DialogDelegate* delegate =
- new ReauthDelegate(new views::WebView(browser_context), email);
+ views::WebView* web_view = new views::WebView(browser_context);
+ views::DialogDelegate* delegate = new ReauthDelegate(web_view, email);
gfx::NativeView parent = instance_->GetWidget()->GetNativeView();
views::DialogDelegate::CreateDialogWidget(delegate, nullptr, parent);
delegate->GetWidget()->Show();
+ web_view->RequestFocus();
}
// UserManagerView -------------------------------------------------------------
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698