Index: chrome/browser/errorpage_browsertest.cc |
diff --git a/chrome/browser/errorpage_browsertest.cc b/chrome/browser/errorpage_browsertest.cc |
index 4badd955177c699c79742446e8628517c4861eaa..482bb6738f0aadbb0aa28a6e487529beb651492c 100644 |
--- a/chrome/browser/errorpage_browsertest.cc |
+++ b/chrome/browser/errorpage_browsertest.cc |
@@ -2,7 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "base/bind.h" |
#include "base/utf_string_conversions.h" |
+#include "chrome/browser/net/url_request_mock_util.h" |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
#include "chrome/test/base/in_process_browser_test.h" |
@@ -58,6 +60,13 @@ class ErrorPageTest : public InProcessBrowserTest { |
HISTORY_NAVIGATE_FORWARD); |
} |
+ protected: |
+ void SetUpOnMainThread() OVERRIDE { |
+ BrowserThread::PostTask( |
+ BrowserThread::IO, FROM_HERE, |
+ base::Bind(&chrome_browser_net::SetUrlRequestMocksEnabled, true)); |
+ } |
+ |
private: |
// Navigates the browser the indicated direction in the history and waits for |
// |num_navigations| to occur and the title to change to |expected_title|. |