diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-01 02:17:08 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-01 02:17:08 +0000 |
commit | f214f8797150f49e1233110c1dafe4e8b601d9ea (patch) | |
tree | 191f4f5b9ee1d9c20fc02dd4f1c940ad4d04267c /chrome/common/notification_registrar.cc | |
parent | 34b9963c187a733bef76535521f3de688fffd34f (diff) | |
download | chromium_src-f214f8797150f49e1233110c1dafe4e8b601d9ea.zip chromium_src-f214f8797150f49e1233110c1dafe4e8b601d9ea.tar.gz chromium_src-f214f8797150f49e1233110c1dafe4e8b601d9ea.tar.bz2 |
Remove base/platform_thread.h stub and fix up all callers to use the new location and namespace.
TEST=none
BUG=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70346 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/notification_registrar.cc')
-rw-r--r-- | chrome/common/notification_registrar.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/common/notification_registrar.cc b/chrome/common/notification_registrar.cc index d413585..841d5d7 100644 --- a/chrome/common/notification_registrar.cc +++ b/chrome/common/notification_registrar.cc @@ -7,13 +7,13 @@ #include <algorithm> #include "base/logging.h" +#include "base/threading/platform_thread.h" #include "chrome/common/notification_service.h" -#include "base/platform_thread.h" namespace { -void CheckCalledOnValidThread(PlatformThreadId thread_id) { - PlatformThreadId current_thread_id = PlatformThread::CurrentId(); +void CheckCalledOnValidThread(base::PlatformThreadId thread_id) { + base::PlatformThreadId current_thread_id = base::PlatformThread::CurrentId(); CHECK(current_thread_id == thread_id) << "called on invalid thread: " << thread_id << " vs. " << current_thread_id; @@ -27,7 +27,7 @@ struct NotificationRegistrar::Record { NotificationObserver* observer; NotificationType type; NotificationSource source; - PlatformThreadId thread_id; + base::PlatformThreadId thread_id; }; bool NotificationRegistrar::Record::operator==(const Record& other) const { @@ -49,7 +49,7 @@ void NotificationRegistrar::Add(NotificationObserver* observer, const NotificationSource& source) { DCHECK(!IsRegistered(observer, type, source)) << "Duplicate registration."; - Record record = { observer, type, source, PlatformThread::CurrentId() }; + Record record = { observer, type, source, base::PlatformThread::CurrentId() }; registered_.push_back(record); NotificationService::current()->AddObserver(observer, type, source); |