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..687dc151cc33fa248b8e0d62d994d342e8a51fde 100644 |
--- a/base/message_loop/message_loop.h |
+++ b/base/message_loop/message_loop.h |
@@ -7,7 +7,6 @@ |
#include <memory> |
#include <queue> |
-#include <string> |
#include "base/base_export.h" |
#include "base/callback_forward.h" |
@@ -294,13 +293,6 @@ 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_; } |
- |
// Gets the TaskRunner associated with this message loop. |
const scoped_refptr<SingleThreadTaskRunner>& task_runner() { |
return task_runner_; |
@@ -536,7 +528,6 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate { |
// if type_ is TYPE_CUSTOM and pump_ is null. |
MessagePumpFactoryCallback pump_factory_; |
- std::string thread_name_; |
// A profiling histogram showing the counts of various messages and events. |
HistogramBase* message_histogram_; |