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

Unified Diff: base/threading/thread.h

Issue 11293086: base: Constantify thread_name() getter accessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/tracked_objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/thread.h
diff --git a/base/threading/thread.h b/base/threading/thread.h
index 645e67c81b970aee4bae2e08608990111ac59707..cf1a86da4d39e374c066c7c090dd14b8c17ae7d2 100644
--- a/base/threading/thread.h
+++ b/base/threading/thread.h
@@ -131,7 +131,7 @@ class BASE_EXPORT Thread : PlatformThread::Delegate {
}
// Returns the name of this thread (for display in debugger too).
- const std::string &thread_name() { return name_; }
+ const std::string& thread_name() const { return name_; }
// The native thread handle.
PlatformThreadHandle thread_handle() { return thread_; }
« no previous file with comments | « no previous file | base/tracked_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698