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

Unified Diff: chrome/browser/sync/profile_sync_test_util.cc

Issue 9419033: Move creation of BrowserContext objects that live in content to content, instead of depending on th… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix memory leaks in tests Created 8 years, 10 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/profile_sync_test_util.h ('k') | chrome/browser/ui/cocoa/cocoa_profile_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_test_util.cc
===================================================================
--- chrome/browser/sync/profile_sync_test_util.cc (revision 122721)
+++ chrome/browser/sync/profile_sync_test_util.cc (working copy)
@@ -13,39 +13,6 @@
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) {}
« no previous file with comments | « chrome/browser/sync/profile_sync_test_util.h ('k') | chrome/browser/ui/cocoa/cocoa_profile_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698