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

Unified Diff: chrome/browser/ui/cocoa/profiles/user_manager_mac.mm

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 comments Created 4 years, 5 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 | chrome/browser/ui/user_manager.h » ('j') | chrome/browser/ui/user_manager.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
diff --git a/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm b/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
index 177a6df9f626e4d74a3aa3c6bb674ac1fdbedce4..efc5022ee984c24158c59cf223b8039b7df65e1a 100644
--- a/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
+++ b/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
@@ -141,24 +141,35 @@ class UserManagerWebContentsDelegate : public content::WebContentsDelegate {
}
};
-class ReauthDialogDelegate : public UserManager::ReauthDialogObserver,
- public UserManagerWebContentsDelegate,
+class ReauthDialogDelegate : public UserManager::BaseReauthDialogDelegate,
public ConstrainedWindowMacDelegate {
public:
ReauthDialogDelegate(content::WebContents* web_contents,
const std::string& email)
- : UserManager::ReauthDialogObserver(web_contents, email) {}
+ : UserManager::BaseReauthDialogDelegate(web_contents) {
+ hotKeysWebContentsDelegate_.reset(new UserManagerWebContentsDelegate());
+ }
- // UserManager::ReauthDialogObserver:
+ // UserManager::BaseReauthDialogDelegate:
void CloseReauthDialog() override {
CloseInstanceReauthDialog();
}
+ // WebContentsDelegate::HandleKeyboardEvent:
+ void HandleKeyboardEvent(
+ content::WebContents* source,
+ const content::NativeWebKeyboardEvent& event) override {
+ hotKeysWebContentsDelegate_->HandleKeyboardEvent(source, event);
+ }
+
// ConstrainedWindowMacDelegate:
void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override {
CloseReauthDialog();
}
+private:
+ std::unique_ptr<UserManagerWebContentsDelegate> hotKeysWebContentsDelegate_;
+
DISALLOW_COPY_AND_ASSIGN(ReauthDialogDelegate);
};
« no previous file with comments | « no previous file | chrome/browser/ui/user_manager.h » ('j') | chrome/browser/ui/user_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698