diff options
Diffstat (limited to 'chrome/browser/sync/profile_sync_test_util.cc')
-rw-r--r-- | chrome/browser/sync/profile_sync_test_util.cc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/chrome/browser/sync/profile_sync_test_util.cc b/chrome/browser/sync/profile_sync_test_util.cc index 2211aa1..951acd3 100644 --- a/chrome/browser/sync/profile_sync_test_util.cc +++ b/chrome/browser/sync/profile_sync_test_util.cc @@ -13,39 +13,6 @@ ProfileSyncServiceObserverMock::ProfileSyncServiceObserverMock() {} ProfileSyncServiceObserverMock::~ProfileSyncServiceObserverMock() {} -ThreadNotificationService::ThreadNotificationService( - base::Thread* notification_thread) - : done_event_(false, false), - notification_thread_(notification_thread) {} - -void ThreadNotificationService::Init() { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); - notification_thread_->message_loop()->PostTask( - FROM_HERE, - base::Bind(&ThreadNotificationService::InitTask, this)); - done_event_.Wait(); -} - -void ThreadNotificationService::TearDown() { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); - notification_thread_->message_loop()->PostTask( - FROM_HERE, - base::Bind(&ThreadNotificationService::TearDownTask, this)); - done_event_.Wait(); -} - -ThreadNotificationService::~ThreadNotificationService() {} - -void ThreadNotificationService::InitTask() { - service_.reset(content::NotificationService::Create()); - done_event_.Signal(); -} - -void ThreadNotificationService::TearDownTask() { - service_.reset(NULL); - done_event_.Signal(); -} - ThreadNotifier::ThreadNotifier(base::Thread* notify_thread) : done_event_(false, false), notify_thread_(notify_thread) {} |