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_; |
} |