Chromium Code Reviews
Help | Chromium Project | Sign in
(59)

Issue 3195014: Lock all access to logging data, in case it's reinitialized (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 9 months ago by DaveMoore
Modified:
4 years ago
Reviewers:
brettw, stoyan
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Lock all access to logging data, in case it's reinitialized Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=58074

Patch Set 1 #

Patch Set 2 : Removed nested locks #

Total comments: 10

Patch Set 3 : Merge stuff #

Patch Set 4 : Initialize Mutex correctly #

Total comments: 2

Patch Set 5 : Shared code to get default log file #

Total comments: 2

Patch Set 6 : Some logging fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -86 lines) Patch
M base/logging.cc View 1 2 4 5 9 chunks +126 lines, -86 lines 0 comments Download
Trybot results:
Commit: CQ not working?

Messages

Total messages: 7 (0 generated)
DaveMoore
4 years, 9 months ago (2010-08-21 20:01:28 UTC) #1
brettw
LGTM, just some style nits. http://codereview.chromium.org/3195014/diff/1002/3001 File base/logging.cc (right): http://codereview.chromium.org/3195014/diff/1002/3001#newcode199 base/logging.cc:199: #elif defined(OS_POSIX) If there's ...
4 years, 9 months ago (2010-08-23 21:47:20 UTC) #2
DaveMoore
Could you please check this again? It failed the try servers w/out these additional changes. ...
4 years, 9 months ago (2010-08-27 21:07:04 UTC) #3
brettw
http://codereview.chromium.org/3195014/diff/8001/9001 File base/logging.cc (right): http://codereview.chromium.org/3195014/diff/8001/9001#newcode193 base/logging.cc:193: wchar_t module_name[MAX_PATH]; Since this is just duplicated from below, ...
4 years, 9 months ago (2010-08-27 21:11:59 UTC) #4
DaveMoore
http://codereview.chromium.org/3195014/diff/8001/9001 File base/logging.cc (right): http://codereview.chromium.org/3195014/diff/8001/9001#newcode193 base/logging.cc:193: wchar_t module_name[MAX_PATH]; On 2010/08/27 21:11:59, brettw wrote: > Since ...
4 years, 9 months ago (2010-08-31 20:05:48 UTC) #5
brettw
LGTM
4 years, 9 months ago (2010-08-31 20:25:25 UTC) #6
stoyan
4 years, 9 months ago (2010-09-01 22:36:40 UTC) #7
http://codereview.chromium.org/3195014/diff/14001/15001
File base/logging.cc (right):

http://codereview.chromium.org/3195014/diff/14001/15001#newcode215
base/logging.cc:215: log_mutex = ::CreateMutex(NULL, FALSE, t.c_str());
Will not work if invoked from renderer (low integrity) since browser (medium
integrity) already took the name (and use the default security descriptor).
Generally speaking "Global\\" prefix is almost always not a good idea.

http://codereview.chromium.org/3195014/diff/14001/15001#newcode333
base/logging.cc:333: *new_log_file_name = new_log_file;
new_log_file may be NULL if logging_destination is LOG_ONLY_TO_SYSTEM_DEBUG_LOG.
I guess this is the reason why ChromeFrame tests crashed.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ec887be