| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/browser/frame_host/debug_urls.h" | 5 #include "content/browser/frame_host/debug_urls.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/asan_invalid_access.h" | 10 #include "base/debug/asan_invalid_access.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 cc::switches::kEnableGpuBenchmarking) && | 118 cc::switches::kEnableGpuBenchmarking) && |
| 119 (transition & ui::PAGE_TRANSITION_TYPED); | 119 (transition & ui::PAGE_TRANSITION_TYPED); |
| 120 | 120 |
| 121 if (!(transition & ui::PAGE_TRANSITION_FROM_ADDRESS_BAR) && | 121 if (!(transition & ui::PAGE_TRANSITION_FROM_ADDRESS_BAR) && |
| 122 !is_telemetry_navigation) | 122 !is_telemetry_navigation) |
| 123 return false; | 123 return false; |
| 124 | 124 |
| 125 if (IsAsanDebugURL(url)) | 125 if (IsAsanDebugURL(url)) |
| 126 return HandleAsanDebugURL(url); | 126 return HandleAsanDebugURL(url); |
| 127 | 127 |
| 128 if (url.host() == kChromeUIBrowserCrashHost) { | 128 if (url == GURL(kChromeUIBrowserCrashURL)) { |
| 129 // Induce an intentional crash in the browser process. | 129 // Induce an intentional crash in the browser process. |
| 130 CHECK(false); | 130 CHECK(false); |
| 131 return true; | 131 return true; |
| 132 } | 132 } |
| 133 | 133 |
| 134 if (url == GURL(kChromeUIGpuCleanURL)) { | 134 if (url == GURL(kChromeUIGpuCleanURL)) { |
| 135 GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance(); | 135 GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance(); |
| 136 if (shim) | 136 if (shim) |
| 137 shim->SimulateRemoveAllContext(); | 137 shim->SimulateRemoveAllContext(); |
| 138 return true; | 138 return true; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 return true; | 170 return true; |
| 171 | 171 |
| 172 return url == GURL(kChromeUICrashURL) || | 172 return url == GURL(kChromeUICrashURL) || |
| 173 url == GURL(kChromeUIDumpURL) || | 173 url == GURL(kChromeUIDumpURL) || |
| 174 url == GURL(kChromeUIKillURL) || | 174 url == GURL(kChromeUIKillURL) || |
| 175 url == GURL(kChromeUIHangURL) || | 175 url == GURL(kChromeUIHangURL) || |
| 176 url == GURL(kChromeUIShorthangURL); | 176 url == GURL(kChromeUIShorthangURL); |
| 177 } | 177 } |
| 178 | 178 |
| 179 } // namespace content | 179 } // namespace content |
| OLD | NEW |