Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5548)

Unified Diff: chrome/service/service_main.cc

Issue 1942053002: Deletes base::MessageLoop::set_thread_name(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: uses PlatformThread::GetName Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/service_process_util_unittest.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_main.cc
diff --git a/chrome/service/service_main.cc b/chrome/service/service_main.cc
index 846bcc9652c4f3ba883f679a82f265b51521b4a4..4e3318cfd59cec9be4fae7ee3b952ab42fb5fe25 100644
--- a/chrome/service/service_main.cc
+++ b/chrome/service/service_main.cc
@@ -17,8 +17,8 @@ int ServiceProcessMain(const content::MainFunctionParams& parameters) {
// cookies should go through the browser process.
net::URLRequest::SetDefaultCookiePolicyToBlock();
+ base::PlatformThread::SetName("CrServiceMain");
base::MessageLoopForUI main_message_loop;
- main_message_loop.set_thread_name("MainThread");
if (parameters.command_line.HasSwitch(switches::kWaitForDebugger)) {
base::debug::WaitForDebugger(60, true);
}
@@ -26,7 +26,6 @@ int ServiceProcessMain(const content::MainFunctionParams& parameters) {
VLOG(1) << "Service process launched: "
<< parameters.command_line.GetCommandLineString();
- base::PlatformThread::SetName("CrServiceMain");
base::StatisticsRecorder::Initialize();
// If there is already a service process running, quit now.
« no previous file with comments | « chrome/common/service_process_util_unittest.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698