From fb2598a4a400032facaf2994f3f8ee91eee5da26 Mon Sep 17 00:00:00 2001 From: "willchan@chromium.org" Date: Fri, 8 Oct 2010 00:15:36 +0000 Subject: 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 --- chrome/browser/sync/notifier/chrome_system_resources.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'chrome/browser/sync/notifier/chrome_system_resources.cc') 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( -- cgit v1.1