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

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

Issue 273193004: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
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/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "content/browser/gpu/gpu_process_host_ui_shim.h" 10 #include "content/browser/gpu/gpu_process_host_ui_shim.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 return true; 77 return true;
78 } 78 }
79 79
80 return false; 80 return false;
81 } 81 }
82 82
83 bool IsRendererDebugURL(const GURL& url) { 83 bool IsRendererDebugURL(const GURL& url) {
84 if (!url.is_valid()) 84 if (!url.is_valid())
85 return false; 85 return false;
86 86
87 if (url.SchemeIs(kJavaScriptScheme)) 87 if (url.SchemeIs(url::kJavaScriptScheme))
88 return true; 88 return true;
89 89
90 return url == GURL(kChromeUICrashURL) || 90 return url == GURL(kChromeUICrashURL) ||
91 url == GURL(kChromeUIKillURL) || 91 url == GURL(kChromeUIKillURL) ||
92 url == GURL(kChromeUIHangURL) || 92 url == GURL(kChromeUIHangURL) ||
93 url == GURL(kChromeUIShorthangURL); 93 url == GURL(kChromeUIShorthangURL);
94 } 94 }
95 95
96 } // namespace content 96 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698