DevTools: disable compilation cache for inspector tests to reduce flakiness.

Review-Url: https://codereview.chromium.org/2586943004
Cr-Commit-Position: refs/heads/master@{#439677}
diff --git a/components/test_runner/test_runner.h b/components/test_runner/test_runner.h
index 827d4d2..1578370 100644
--- a/components/test_runner/test_runner.h
+++ b/components/test_runner/test_runner.h
@@ -117,6 +117,7 @@
   void ShowDevTools(const std::string& settings,
                     const std::string& frontend_url);
   void ClearDevToolsLocalStorage();
+  void SetV8CacheDisabled(bool);
   void setShouldDumpAsText(bool);
   void setShouldDumpAsMarkup(bool);
   void setCustomTextOutput(const std::string& text);
@@ -657,6 +658,9 @@
   // An effective connection type settable by layout tests.
   blink::WebEffectiveConnectionType effective_connection_type_;
 
+  // Forces v8 compilation cache to be disabled (used for inspector tests).
+  bool disable_v8_cache_ = false;
+
   base::WeakPtrFactory<TestRunner> weak_factory_;
 
   DISALLOW_COPY_AND_ASSIGN(TestRunner);