Index: base/message_loop/message_loop.h |
diff --git a/base/message_loop/message_loop.h b/base/message_loop/message_loop.h |
index 667cf1e4c74bb1b78ce0a45a4886442672c98ae0..97b3fe4742683735a7f0d200b7934f880313d769 100644 |
--- a/base/message_loop/message_loop.h |
+++ b/base/message_loop/message_loop.h |
@@ -294,12 +294,8 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate { |
// Returns the type passed to the constructor. |
Type type() const { return type_; } |
- // Optional call to connect the thread name with this loop. |
- void set_thread_name(const std::string& thread_name) { |
- DCHECK(thread_name_.empty()) << "Should not rename this thread!"; |
- thread_name_ = thread_name; |
- } |
- const std::string& thread_name() const { return thread_name_; } |
+ // Returns the name of the thread this message loop is bound to. |
+ const char* GetThreadName() const { return task_runner_->GetThreadName(); } |
jam
2016/05/06 16:50:23
nit: no need to have this wrapper method? i.e. cal
alokp
2016/05/07 04:14:05
Done.
|
// Gets the TaskRunner associated with this message loop. |
const scoped_refptr<SingleThreadTaskRunner>& task_runner() { |