| Index: chrome/test/testing_browser_process.cc
|
| diff --git a/chrome/test/testing_browser_process.cc b/chrome/test/testing_browser_process.cc
|
| index b3cde66ff0cedbb9d0c128ff2999bb2bf9528bdd..43188d53367755a5cd407824d4c6f65e5b5c860a 100644
|
| --- a/chrome/test/testing_browser_process.cc
|
| +++ b/chrome/test/testing_browser_process.cc
|
| @@ -19,7 +19,8 @@
|
| TestingBrowserProcess::TestingBrowserProcess()
|
| : module_ref_count_(0),
|
| app_locale_("en"),
|
| - local_state_(NULL) {
|
| + local_state_(NULL),
|
| + io_thread_(NULL) {
|
| }
|
|
|
| TestingBrowserProcess::~TestingBrowserProcess() {
|
| @@ -38,7 +39,7 @@ MetricsService* TestingBrowserProcess::metrics_service() {
|
| }
|
|
|
| IOThread* TestingBrowserProcess::io_thread() {
|
| - return NULL;
|
| + return io_thread_;
|
| }
|
|
|
| base::Thread* TestingBrowserProcess::file_thread() {
|
| @@ -248,6 +249,10 @@ void TestingBrowserProcess::SetGoogleURLTracker(
|
| google_url_tracker_.reset(google_url_tracker);
|
| }
|
|
|
| +void TestingBrowserProcess::SetIOThread(IOThread* io_thread) {
|
| + io_thread_ = io_thread;
|
| +}
|
| +
|
| ScopedTestingBrowserProcess::ScopedTestingBrowserProcess() {
|
| // TODO(phajdan.jr): Temporary, for http://crbug.com/61062.
|
| // ChromeTestSuite sets up a global TestingBrowserProcess
|
|
|