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

Unified Diff: chrome/common/notification_service.h

Issue 1660: Move a bunch of code from the old to new TLS interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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/common/ipc_sync_channel.cc ('k') | chrome/common/notification_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/notification_service.h
===================================================================
--- chrome/common/notification_service.h (revision 1894)
+++ chrome/common/notification_service.h (working copy)
@@ -12,7 +12,6 @@
#include <map>
#include "base/observer_list.h"
-#include "base/thread_local_storage.h"
#include "base/values.h"
#include "chrome/common/notification_details.h"
#include "chrome/common/notification_source.h"
@@ -24,9 +23,7 @@
public:
// Returns the NotificationService object for the current thread, or NULL if
// none.
- static NotificationService* current() {
- return static_cast<NotificationService *>(tls_index_.Get());
- }
+ static NotificationService* current();
// Normally instantiated when the thread is created. Not all threads have
// a NotificationService. Only one instance should be created per thread.
@@ -91,10 +88,6 @@
// a simple array is probably the fastest way to dispatch.
NotificationSourceMap observers_[NOTIFICATION_TYPE_COUNT];
- // The thread local storage index, used for getting the current thread's
- // instance.
- static TLSSlot tls_index_;
-
#ifndef NDEBUG
// Used to check to see that AddObserver and RemoveObserver calls are
// balanced.
« no previous file with comments | « chrome/common/ipc_sync_channel.cc ('k') | chrome/common/notification_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698