summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_thread.cc
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-03 21:46:19 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-03 21:46:19 +0000
commit83a7d2eb244232d057b245e43ae867ad27493bd1 (patch)
tree2b04a04f09228cb741c24f3e3463f4061779113e /chrome/browser/chrome_thread.cc
parent4766b28875c45e5eca6ff16272f85c691e9a181a (diff)
downloadchromium_src-83a7d2eb244232d057b245e43ae867ad27493bd1.zip
chromium_src-83a7d2eb244232d057b245e43ae867ad27493bd1.tar.gz
chromium_src-83a7d2eb244232d057b245e43ae867ad27493bd1.tar.bz2
Changed UrlFetcher to use a MessageLoopProxy instead of directly relying on ChromeThread. This will allow us to make UrlFetcher independent of ChromeThread and we can then move it to chrome/common.
BUG=None TEST=UrlFetcher unit-tests Review URL: http://codereview.chromium.org/1702016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46282 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_thread.cc')
-rw-r--r--chrome/browser/chrome_thread.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/chrome_thread.cc b/chrome/browser/chrome_thread.cc
index 6421a79..e6f03cc 100644
--- a/chrome/browser/chrome_thread.cc
+++ b/chrome/browser/chrome_thread.cc
@@ -51,6 +51,9 @@ class ChromeThreadMessageLoopProxy : public MessageLoopProxy {
return ChromeThread::PostNonNestableDelayedTask(id_, from_here, task,
delay_ms);
}
+ virtual bool BelongsToCurrentThread() {
+ return ChromeThread::CurrentlyOn(id_);
+ }
private:
ChromeThread::ID id_;