diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-08 00:15:36 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-08 00:15:36 +0000 |
commit | fb2598a4a400032facaf2994f3f8ee91eee5da26 (patch) | |
tree | 6cd59b4e91453f850e47ddf9fc849ee57a053df9 /chrome/browser/sync/notifier/chrome_system_resources.cc | |
parent | 4bfb079194cc72f5767910a9452baf4ed2c7a4d8 (diff) | |
download | chromium_src-fb2598a4a400032facaf2994f3f8ee91eee5da26.zip chromium_src-fb2598a4a400032facaf2994f3f8ee91eee5da26.tar.gz chromium_src-fb2598a4a400032facaf2994f3f8ee91eee5da26.tar.bz2 |
Revert 61881 (broke sync_unit_tests) - [Sync] Fixed flipped return value from 61851.
BUG=None
TEST=None
TBR=johnnyg
Review URL: http://codereview.chromium.org/3579018
TBR=akalin@chromium.org
Review URL: http://codereview.chromium.org/3599023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61891 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/notifier/chrome_system_resources.cc')
-rw-r--r-- | chrome/browser/sync/notifier/chrome_system_resources.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/sync/notifier/chrome_system_resources.cc b/chrome/browser/sync/notifier/chrome_system_resources.cc index 2f851b6..11ef0f0 100644 --- a/chrome/browser/sync/notifier/chrome_system_resources.cc +++ b/chrome/browser/sync/notifier/chrome_system_resources.cc @@ -64,19 +64,17 @@ void ChromeSystemResources::ScheduleImmediately( MessageLoop::current()->PostTask(FROM_HERE, task_to_post); } -// The listener thread is just our current thread (i.e., the -// notifications thread). +// The listener thread is just our current thread. void ChromeSystemResources::ScheduleOnListenerThread( invalidation::Closure* task) { DCHECK(non_thread_safe_.CalledOnValidThread()); ScheduleImmediately(task); } -// 'Internal thread' means 'not the listener thread'. Since the -// listener thread is the notifications thread, always return false. +// We're already on a separate thread, so always return true. bool ChromeSystemResources::IsRunningOnInternalThread() { DCHECK(non_thread_safe_.CalledOnValidThread()); - return false; + return true; } void ChromeSystemResources::Log( |