diff options
author | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-25 13:54:18 +0000 |
---|---|---|
committer | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-25 13:54:18 +0000 |
commit | 7d0f9445f4ffb50dc1d72bc2f5ce329ccfec7cad (patch) | |
tree | 668755bb0e584a311f5c22e24f1c48e0e47d0c56 /chrome | |
parent | 302bdc13a9baebb21894673e7674f4e0361cfe97 (diff) | |
download | chromium_src-7d0f9445f4ffb50dc1d72bc2f5ce329ccfec7cad.zip chromium_src-7d0f9445f4ffb50dc1d72bc2f5ce329ccfec7cad.tar.gz chromium_src-7d0f9445f4ffb50dc1d72bc2f5ce329ccfec7cad.tar.bz2 |
Make PlatformThread::SetName operate only on the current thread.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1306 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/browser_main.cc | 2 | ||||
-rw-r--r-- | chrome/browser/net/dns_slave.cc | 2 | ||||
-rw-r--r-- | chrome/renderer/renderer_main.cc | 2 | ||||
-rw-r--r-- | chrome/test/ui/run_all_unittests.cc | 2 |
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(); } |