summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/browser_main.cc2
-rw-r--r--chrome/browser/net/dns_slave.cc2
-rw-r--r--chrome/renderer/renderer_main.cc2
-rw-r--r--chrome/test/ui/run_all_unittests.cc2
4 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 8cf86fd7..b3357f0 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -246,7 +246,7 @@ int BrowserMain(CommandLine &parsed_command_line, int show_command,
// defined roles (e.g. pre/post-profile startup, etc).
const char* main_thread_name = "Chrome_BrowserMain";
- PlatformThread::SetName(PlatformThread::CurrentId(), main_thread_name);
+ PlatformThread::SetName(main_thread_name);
MessageLoop::current()->set_thread_name(main_thread_name);
bool already_running = CreateUniqueChromeEvent();
diff --git a/chrome/browser/net/dns_slave.cc b/chrome/browser/net/dns_slave.cc
index 95acbee..82406af 100644
--- a/chrome/browser/net/dns_slave.cc
+++ b/chrome/browser/net/dns_slave.cc
@@ -54,7 +54,7 @@ unsigned DnsSlave::Run() {
std::string name = StringPrintf(
"dns_prefetcher_%d_of_%d", slave_index_ + 1, DnsMaster::kSlaveCountMax);
DLOG(INFO) << "Now Running " << name;
- PlatformThread::SetName(PlatformThread::CurrentId(), name.c_str());
+ PlatformThread::SetName(name.c_str());
while (master_->GetNextAssignment(&hostname_)) {
BlockingDnsLookup();
diff --git a/chrome/renderer/renderer_main.cc b/chrome/renderer/renderer_main.cc
index 6b472a6..59c4003 100644
--- a/chrome/renderer/renderer_main.cc
+++ b/chrome/renderer/renderer_main.cc
@@ -48,7 +48,7 @@ int RendererMain(CommandLine &parsed_command_line, int show_command,
StatsScope<StatsCounterTimer>
startup_timer(chrome::Counters::renderer_main());
- PlatformThread::SetName(PlatformThread::CurrentId(), "Chrome_RendererMain");
+ PlatformThread::SetName("Chrome_RendererMain");
CoInitialize(NULL);
diff --git a/chrome/test/ui/run_all_unittests.cc b/chrome/test/ui/run_all_unittests.cc
index 5c60d57..f4c0116 100644
--- a/chrome/test/ui/run_all_unittests.cc
+++ b/chrome/test/ui/run_all_unittests.cc
@@ -11,7 +11,7 @@ int main(int argc, char **argv) {
// the AtExitManager or else we will leak objects.
base::AtExitManager at_exit_manager;
- PlatformThread::SetName(PlatformThread::CurrentId(), "Tests_Main");
+ PlatformThread::SetName("Tests_Main");
return UITestSuite(argc, argv).Run();
}