Commit 2c05239b authored by gogerald's avatar gogerald Committed by Commit bot

Request focus for re-auth webview.

Request focus for re-auth webview after re-auth dialog is showing.

BUG=520046.

Review URL: https://codereview.chromium.org/1336853003

Cr-Commit-Position: refs/heads/master@{#348789}
parent 03377b81
......@@ -75,6 +75,7 @@ class ReauthDelegate : public views::DialogDelegateView,
void DeleteDelegate() override;
base::string16 GetWindowTitle() const override;
int GetDialogButtons() const override;
views::View* GetInitiallyFocusedView() override;
// UserManager::ReauthObserver:
void CloseReauthDialog() override;
......@@ -138,6 +139,10 @@ int ReauthDelegate::GetDialogButtons() const {
return ui::DIALOG_BUTTON_NONE;
}
views::View* ReauthDelegate::GetInitiallyFocusedView() {
return static_cast<views::View*>(web_view_);
}
void ReauthDelegate::CloseReauthDialog() {
GetWidget()->Close();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment