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

Unified Diff: chrome/browser/ui/webui/devtools_ui.cc

Issue 2691083002: [DevTools] Allow bundled DevTools for Node targets (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/devtools_ui.cc
diff --git a/chrome/browser/ui/webui/devtools_ui.cc b/chrome/browser/ui/webui/devtools_ui.cc
index 9cacacc5c9b5cf4622d79dd21368660fefed7582..522b4cd82e7561de31a60c3ec5af79ce3407cdbb 100644
--- a/chrome/browser/ui/webui/devtools_ui.cc
+++ b/chrome/browser/ui/webui/devtools_ui.cc
@@ -280,6 +280,10 @@ void DevToolsDataSource::OnURLFetchComplete(const net::URLFetcher* source) {
// static
GURL DevToolsUI::GetProxyURL(const std::string& frontend_url) {
GURL url(frontend_url);
+ if (url.scheme() == content::kChromeDevToolsScheme &&
+ url.host() == chrome::kChromeUIDevToolsHost)
+ return GURL();
+
if (!url.is_valid() || url.host() != kRemoteFrontendDomain)
return GURL(kFallbackFrontendURL);
return GURL(base::StringPrintf("%s://%s/%s/%s",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698