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

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

Issue 2168953002: Disables the context menu in User Manager's reauth dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment Created 4 years, 4 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 | « chrome/browser/ui/views/profiles/user_manager_view.h ('k') | 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 8f9374979c0ffe71f73b0f1eb923c6b13047f1fa..0408361558647d54001a3be68b23a42aca0adef2 100644
--- a/chrome/browser/ui/views/profiles/user_manager_view.cc
+++ b/chrome/browser/ui/views/profiles/user_manager_view.cc
@@ -66,14 +66,14 @@ ReauthDelegate::ReauthDelegate(UserManagerView* parent,
views::WebView* web_view,
const std::string& email_address,
signin_metrics::Reason reason)
- : UserManager::ReauthDialogObserver(web_view->GetWebContents(),
- email_address),
- parent_(parent),
+ : parent_(parent),
web_view_(web_view),
email_address_(email_address) {
AddChildView(web_view_);
SetLayoutManager(new views::FillLayout());
+ web_view->GetWebContents()->SetDelegate(this);
+
// Load the re-auth URL, prepopulated with the user's email address.
// Add the index of the profile to the URL so that the inline login page
// knows which profile to load and update the credentials.
« no previous file with comments | « chrome/browser/ui/views/profiles/user_manager_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698