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

Unified Diff: base/message_loop.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 | « no previous file | base/message_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.h
===================================================================
--- base/message_loop.h (revision 1894)
+++ base/message_loop.h (working copy)
@@ -16,7 +16,6 @@
#include "base/ref_counted.h"
#include "base/task.h"
#include "base/timer.h"
-#include "base/thread_local_storage.h"
#if defined(OS_WIN)
// We need this to declare base::MessagePumpWin::Dispatcher, which we should
@@ -201,13 +200,7 @@
const std::string& thread_name() const { return thread_name_; }
// Returns the MessageLoop object for the current thread, or null if none.
- static MessageLoop* current() {
- MessageLoop* loop = static_cast<MessageLoop*>(tls_index_.Get());
- // TODO(darin): sadly, we cannot enable this yet since people call us even
- // when they have no intention of using us.
- //DCHECK(loop) << "Ouch, did you forget to initialize me?";
- return loop;
- }
+ static MessageLoop* current();
// Enables or disables the recursive task processing. This happens in the case
// of recursive message loops. Some unwanted message loop may occurs when
@@ -343,7 +336,6 @@
// If message_histogram_ is NULL, this is a no-op.
void HistogramEvent(int event);
- static TLSSlot tls_index_;
static const LinearHistogram::DescriptionPair event_descriptions_[];
static bool enable_histogrammer_;
« no previous file with comments | « no previous file | base/message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698