summaryrefslogtreecommitdiffstats
path: root/base/watchdog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/watchdog.cc')
-rw-r--r--base/watchdog.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/watchdog.cc b/base/watchdog.cc
index 1d9c183..f8540eb 100644
--- a/base/watchdog.cc
+++ b/base/watchdog.cc
@@ -28,8 +28,9 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "base/watchdog.h"
+
+#include "base/platform_thread.h"
#include "base/string_util.h"
-#include "base/thread.h"
//------------------------------------------------------------------------------
// Public API methods.
@@ -159,7 +160,7 @@ unsigned Watchdog::Run() {
void Watchdog::SetThreadName() const {
std::string name = StringPrintf("%s Watchdog",
WideToASCII(thread_watched_name_).c_str());
- Thread::SetThreadName(name.c_str(), thread_id_);
+ PlatformThread::SetName(thread_id_, name.c_str());
DLOG(INFO) << "Watchdog active: " << name;
}