| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/login/ui/login_web_dialog.h" | 5 #include "chrome/browser/chromeos/login/ui/login_web_dialog.h" |
| 6 | 6 |
| 7 #include <deque> | 7 #include <deque> |
| 8 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 // fire an auto-reload, which in turn leads to opening a new browser window, | 163 // fire an auto-reload, which in turn leads to opening a new browser window, |
| 164 // so we must suppress it. | 164 // so we must suppress it. |
| 165 // http://crbug.com/443096 | 165 // http://crbug.com/443096 |
| 166 return (source && !chrome::FindBrowserWithWebContents(source)); | 166 return (source && !chrome::FindBrowserWithWebContents(source)); |
| 167 } | 167 } |
| 168 | 168 |
| 169 bool LoginWebDialog::HandleShouldCreateWebContents() { | 169 bool LoginWebDialog::HandleShouldCreateWebContents() { |
| 170 return false; | 170 return false; |
| 171 } | 171 } |
| 172 | 172 |
| 173 bool LoginWebDialog::AdditionalAccelerator( |
| 174 const ui::Accelerator& accelerator) const { |
| 175 return accelerator.key_code() == ui::VKEY_BROWSER_BACK && |
| 176 accelerator.IsShiftDown(); |
| 177 } |
| 178 |
| 173 } // namespace chromeos | 179 } // namespace chromeos |
| OLD | NEW |