Index: chrome/browser/sync/glue/http_bridge.cc |
=================================================================== |
--- chrome/browser/sync/glue/http_bridge.cc (revision 46098) |
+++ chrome/browser/sync/glue/http_bridge.cc (working copy) |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/sync/glue/http_bridge.h" |
#include "base/message_loop.h" |
+#include "base/message_loop_proxy.h" |
#include "base/string_util.h" |
#include "chrome/browser/chrome_thread.h" |
#include "chrome/browser/profile.h" |
@@ -42,6 +43,11 @@ |
return context_; |
} |
+scoped_refptr<MessageLoopProxy> |
+HttpBridge::RequestContextGetter::GetIOMessageLoopProxy() { |
+ return ChromeThread::GetMessageLoopProxyForThread(ChromeThread::IO); |
+} |
+ |
HttpBridgeFactory::HttpBridgeFactory( |
URLRequestContextGetter* baseline_context_getter) { |
DCHECK(baseline_context_getter != NULL); |
@@ -98,6 +104,7 @@ |
} |
HttpBridge::RequestContext::~RequestContext() { |
+ DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO)); |
delete http_transaction_factory_; |
} |