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

Side by Side Diff: chrome/browser/ui/signin_view_controller_delegate.cc

Issue 2093563003: Disable the Context Menu in the tab-modal signin dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/signin_view_controller_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/signin_view_controller_delegate.h" 5 #include "chrome/browser/ui/signin_view_controller_delegate.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/ui/signin_view_controller.h" 9 #include "chrome/browser/ui/signin_view_controller.h"
10 #include "chrome/browser/ui/webui/signin/get_auth_frame.h" 10 #include "chrome/browser/ui/webui/signin/get_auth_frame.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 61
62 void SigninViewControllerDelegate::PerformNavigation() { 62 void SigninViewControllerDelegate::PerformNavigation() {
63 if (CanGoBack(web_contents_)) { 63 if (CanGoBack(web_contents_)) {
64 auto auth_web_contents = GetAuthFrameWebContents(web_contents_); 64 auto auth_web_contents = GetAuthFrameWebContents(web_contents_);
65 auth_web_contents->GetController().GoBack(); 65 auth_web_contents->GetController().GoBack();
66 } else { 66 } else {
67 CloseModalSignin(); 67 CloseModalSignin();
68 } 68 }
69 } 69 }
70
71 bool SigninViewControllerDelegate::HandleContextMenu(
sky 2016/06/23 19:13:24 make order match position in header.
anthonyvd 2016/06/27 15:28:16 Good catch, most of the file was out of order. Don
72 const content::ContextMenuParams& params) {
73 // Discard the context menu
74 return true;
75 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/signin_view_controller_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698