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

Unified Diff: base/thread.cc

Issue 3322020: Revert 58786 - Adding debugging info for thread name.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/thread.cc
===================================================================
--- base/thread.cc (revision 59163)
+++ base/thread.cc (working copy)
@@ -136,28 +136,10 @@
message_loop_->PostTask(FROM_HERE, new ThreadQuitTask());
}
-#if defined(OS_WIN)
-#pragma warning (disable: 4748)
-#pragma optimize( "", off )
-#endif
-
void Thread::Run(MessageLoop* message_loop) {
-#if defined(OS_WIN)
- // Logging the thread name for debugging.
- // TODO(huanr): remove after done.
- // http://code.google.com/p/chromium/issues/detail?id=54307
- char name[16];
- strncpy(name, name_.c_str(), arraysize(name) - 1);
- name[arraysize(name) - 1] = '\0';
-#endif
message_loop->Run();
}
-#if defined(OS_WIN)
-#pragma optimize( "", on )
-#pragma warning (default: 4748)
-#endif
-
void Thread::ThreadMain() {
{
// The message loop for this thread.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698