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

Unified Diff: chrome/test/base/thread_observer_helper.h

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 2 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/test/base/testing_profile.cc ('k') | chrome/tools/profiles/generate_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/thread_observer_helper.h
diff --git a/chrome/test/base/thread_observer_helper.h b/chrome/test/base/thread_observer_helper.h
index 4c2212372ecf8571c1b934b0fefa8ab40d552294..bbfc40f9e1d29ca269aa45725c7206193ecc75bc 100644
--- a/chrome/test/base/thread_observer_helper.h
+++ b/chrome/test/base/thread_observer_helper.h
@@ -17,10 +17,11 @@
template <class T, typename Traits>
class ThreadObserverHelper : public base::RefCountedThreadSafe<T, Traits> {
public:
- explicit ThreadObserverHelper(BrowserThread::ID id)
+ explicit ThreadObserverHelper(content::BrowserThread::ID id)
: id_(id), done_event_(false, false) {}
void Init() {
+ using content::BrowserThread;
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
BrowserThread::PostTask(
id_,
@@ -30,7 +31,7 @@ class ThreadObserverHelper : public base::RefCountedThreadSafe<T, Traits> {
}
virtual ~ThreadObserverHelper() {
- DCHECK(BrowserThread::CurrentlyOn(id_));
+ DCHECK(content::BrowserThread::CurrentlyOn(id_));
registrar_.RemoveAll();
}
@@ -48,23 +49,24 @@ class ThreadObserverHelper : public base::RefCountedThreadSafe<T, Traits> {
private:
void RegisterObserversTask() {
- DCHECK(BrowserThread::CurrentlyOn(id_));
+ DCHECK(content::BrowserThread::CurrentlyOn(id_));
RegisterObservers();
done_event_.Signal();
}
- BrowserThread::ID id_;
+ content::BrowserThread::ID id_;
base::WaitableEvent done_event_;
};
class DBThreadObserverHelper;
typedef ThreadObserverHelper<
DBThreadObserverHelper,
- BrowserThread::DeleteOnDBThread> DBThreadObserverHelperBase;
+ content::BrowserThread::DeleteOnDBThread> DBThreadObserverHelperBase;
class DBThreadObserverHelper : public DBThreadObserverHelperBase {
public:
- DBThreadObserverHelper() : DBThreadObserverHelperBase(BrowserThread::DB) {}
+ DBThreadObserverHelper() :
+ DBThreadObserverHelperBase(content::BrowserThread::DB) {}
};
#endif // CHROME_TEST_BASE_THREAD_OBSERVER_HELPER_H_
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | chrome/tools/profiles/generate_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698