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

Unified Diff: chrome/test/testing_browser_process.cc

Issue 7282054: Remove more unnecessary ChromeURLRequestContext members. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright and chormeos tests. Created 9 years, 5 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
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

Powered by Google App Engine
This is Rietveld 408576698