Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 } | |
| OLD | NEW |