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

Side by Side Diff: content/browser/frame_host/debug_urls.cc

Issue 595993002: Only quit or restart with chrome:// or about:. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: inducebrowsercrashforrealz Created 6 years, 2 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/browser_about_handler.cc ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698