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

Unified Diff: chrome/browser/sync/glue/http_bridge.cc

Issue 1702016: Changed UrlFetcher to use a MessageLoopProxy instead of directly relying on C... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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
« no previous file with comments | « chrome/browser/sync/glue/http_bridge.h ('k') | chrome/browser/sync/glue/http_bridge_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
}
« no previous file with comments | « chrome/browser/sync/glue/http_bridge.h ('k') | chrome/browser/sync/glue/http_bridge_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698