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

Issue 2741003: Rename Chrome threads to use a "Cr" prefix. (Closed)

Created:
10 years, 6 months ago by Evan Martin
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jam+cc_chromium.org, fbarchard, ben+cc_chromium.org, Alpha Left Google, jam, apatrick_chromium, darin-cc_chromium.org, awong, brettw-cc_chromium.org, kuchhal
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Rename Chrome threads to use a "Cr" prefix. Before we carefully used the app (Chrome/Chromium) name, but: 1) these are for internal debugging use only, so why compute this name 2) on Linux the thread ids are limited to 16 characters, and "Chromium" is too long Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49296

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -31 lines) Patch
M chrome/browser/browser_main.cc View 1 chunk +3 lines, -6 lines 1 comment Download
M chrome/gpu/gpu_main.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/nacl/nacl_main.cc View 2 chunks +2 lines, -9 lines 0 comments Download
M chrome/plugin/plugin_main.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/profile_import/profile_import_main.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/renderer/renderer_main.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/service/service_main.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/utility/utility_main.cc View 1 chunk +1 line, -1 line 1 comment Download
M chrome/worker/worker_main.cc View 1 chunk +1 line, -2 lines 0 comments Download
M media/filters/video_renderer_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/src/broker_services.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Evan Martin
M-A wrote the original patch that introduced putting "Chrome_" in our thread names back in ...
10 years, 6 months ago (2010-06-08 23:06:00 UTC) #1
scherkus (not reviewing)
What about threads created + named via base::Thread() constructor? base/thread.cc calls PlatformThread::SetName() with the thread ...
10 years, 6 months ago (2010-06-08 23:09:37 UTC) #2
Evan Martin
On 2010/06/08 23:09:37, scherkus wrote: > What about threads created + named via base::Thread() constructor? ...
10 years, 6 months ago (2010-06-08 23:12:02 UTC) #3
Avi (use Gerrit)
http://codereview.chromium.org/2741003/diff/1/9 File chrome/utility/utility_main.cc (right): http://codereview.chromium.org/2741003/diff/1/9#newcode28 chrome/utility/utility_main.cc:28: std::wstring app_name = chrome::kBrowserAppName; kill app_name too?
10 years, 6 months ago (2010-06-08 23:13:18 UTC) #4
Avi (use Gerrit)
On 2010/06/08 23:12:02, Evan Martin wrote: > I figured there was probably > some reason ...
10 years, 6 months ago (2010-06-08 23:14:09 UTC) #5
Evan Martin
(Since there are more commenters on this now, I'll note I have another patch almost ...
10 years, 6 months ago (2010-06-08 23:21:32 UTC) #6
M-A Ruel
lgtm with nit http://codereview.chromium.org/2741003/diff/1/2 File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/2741003/diff/1/2#newcode826 chrome/browser/browser_main.cc:826: const char kThreadName[] = "CrBrowserMain"; No, ...
10 years, 6 months ago (2010-06-09 01:32:30 UTC) #7
Nicolas Sylvain
10 years, 6 months ago (2010-06-09 14:07:57 UTC) #8
LGTM with the comments from others.

The try job on windows is red a lot. Please make sure there is not something in
the ui tests that relies on the thread name to synchronize.

Powered by Google App Engine
This is Rietveld 408576698