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

Unified Diff: chrome/browser/io_thread.cc

Issue 17127002: Correctly integrate StoragePartition into TestingProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments. merge to ToT. Murder a DB thread and more TestBrowserThreads. Created 7 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/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index dde18801b1567adb1d4b0d8e1ed17feb9776afd4..40092a49d624c056809a284c795a4ce391648a90 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -442,6 +442,12 @@ IOThread::Globals* IOThread::globals() {
return globals_;
}
+void IOThread::SetGlobalsForTesting(Globals* globals) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK(!globals || !globals_);
+ globals_ = globals;
+}
+
ChromeNetLog* IOThread::net_log() {
return net_log_;
}

Powered by Google App Engine
This is Rietveld 408576698