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

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

Issue 1266893002: CFI: Add a new debug URL, chrome://badcast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename Created 5 years, 4 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/common/url_constants.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 #if defined(SYZYASAN) 7 #if defined(SYZYASAN)
8 #include <windows.h> 8 #include <windows.h>
9 #endif 9 #endif
10 10
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 return false; 219 return false;
220 } 220 }
221 221
222 bool IsRendererDebugURL(const GURL& url) { 222 bool IsRendererDebugURL(const GURL& url) {
223 if (!url.is_valid()) 223 if (!url.is_valid())
224 return false; 224 return false;
225 225
226 if (url.SchemeIs(url::kJavaScriptScheme)) 226 if (url.SchemeIs(url::kJavaScriptScheme))
227 return true; 227 return true;
228 228
229 return url == GURL(kChromeUICrashURL) || 229 return url == GURL(kChromeUIBadCastCrashURL) ||
230 url == GURL(kChromeUICrashURL) ||
230 url == GURL(kChromeUIDumpURL) || 231 url == GURL(kChromeUIDumpURL) ||
231 url == GURL(kChromeUIKillURL) || 232 url == GURL(kChromeUIKillURL) ||
232 url == GURL(kChromeUIHangURL) || 233 url == GURL(kChromeUIHangURL) ||
233 url == GURL(kChromeUIShorthangURL); 234 url == GURL(kChromeUIShorthangURL);
234 } 235 }
235 236
236 } // namespace content 237 } // namespace content
OLDNEW
« no previous file with comments | « chrome/common/url_constants.cc ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698