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 daf127b66f10095607d6abc3c6335425f64842a7..418bdd5ca8edaab5ca4635d3f5c6508b31966ef9 100644 |
--- a/content/shell/browser/layout_test/layout_test_devtools_frontend.cc |
+++ b/content/shell/browser/layout_test/layout_test_devtools_frontend.cc |
@@ -15,6 +15,7 @@ |
#include "content/public/browser/web_contents.h" |
#include "content/shell/browser/layout_test/blink_test_controller.h" |
#include "content/shell/browser/shell.h" |
+#include "content/shell/common/layout_test/layout_test_switches.h" |
#include "net/base/filename_util.h" |
namespace content { |
@@ -51,8 +52,11 @@ GURL LayoutTestDevToolsFrontend::GetDevToolsPathAsURL( |
// We need to go up 3 directories to get to out/Release. |
dir_exe = dir_exe.AppendASCII("../../.."); |
#endif |
+ bool isDebugDevTools = base::CommandLine::ForCurrentProcess()->HasSwitch( |
pfeldman
2016/08/24 00:36:04
use_underscore_notation
chenwilliam
2016/08/24 22:53:40
Done.
|
+ switches::kDebugDevTools); |
+ std::string folder = isDebugDevTools ? "inspector" : "inspector_release"; |
base::FilePath dev_tools_path = |
- dir_exe.AppendASCII("resources/inspector/inspector.html"); |
+ dir_exe.AppendASCII("resources/" + folder + "/inspector.html"); |
GURL result = net::FilePathToFileURL(dev_tools_path); |
std::string url_string = |