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

Unified Diff: content/shell/browser/layout_test/layout_test_devtools_frontend.cc

Issue 1639973003: [DevTools] use debug_frontend flag in content_shell for tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « content/shell/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/layout_test/layout_test_devtools_frontend.cc
diff --git a/content/shell/browser/layout_test/layout_test_devtools_frontend.cc b/content/shell/browser/layout_test/layout_test_devtools_frontend.cc
index 63a7809f015c0a93372c9a99a8e6899546319532..8fb72565bbc65d95d874a29562343ee8969e00e6 100644
--- a/content/shell/browser/layout_test/layout_test_devtools_frontend.cc
+++ b/content/shell/browser/layout_test/layout_test_devtools_frontend.cc
@@ -53,11 +53,14 @@ GURL LayoutTestDevToolsFrontend::GetDevToolsPathAsURL(
dir_exe.AppendASCII("resources/inspector/inspector.html");
GURL result = net::FilePathToFileURL(dev_tools_path);
+ std::string url_string =
+ base::StringPrintf("%s?experiments=true", result.spec().c_str());
+#if defined(DEBUG_DEVTOOLS)
+ url_string += "&debugFrontend=true";
+#endif // defined(DEBUG_DEVTOOLS)
if (!settings.empty())
- result = GURL(base::StringPrintf("%s?settings=%s&experiments=true",
- result.spec().c_str(),
- settings.c_str()));
- return result;
+ url_string += "&settings=" + settings;
+ return GURL(url_string);
}
void LayoutTestDevToolsFrontend::ReuseFrontend(const std::string& settings,
« no previous file with comments | « content/shell/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698