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

Issue 4194005: This moves log output for ChromeOS to safer locations. (Closed)

Created:
10 years, 1 month ago by Greg Spencer (Chromium)
Modified:
9 years, 7 months ago
Reviewers:
DaveMoore
CC:
chromium-reviews, ben+cc_chromium.org, nkostylev+cc_chromium.org, davemoore+watch_chromium.org, brettw-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

This moves log output for ChromeOS to safer locations. For BWSI (incognito) mode, we want to make sure that we don't leak private information between sessions, so we need to have chrome write log output to the tmpfs created for that mode. Also, the chrome log in "logged in" mode should reside in the "log" subdir instead of in the user data dir. BUG=http://crosbug.com/6908 TEST=Ran on device in incognito and regular modes, and watched where log output ended up. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64638 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64826

Patch Set 1 #

Patch Set 2 : Updated comment #

Patch Set 3 : Finishing up #

Patch Set 4 : Changing CHECK to DCHECK #

Patch Set 5 : Moving some stuff around #

Total comments: 2

Patch Set 6 : Fixing an overzealous DCHECK #

Patch Set 7 : upload after sync #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -21 lines) Patch
M chrome/browser/browser_main.cc View 1 2 3 4 5 1 chunk +2 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M chrome/common/env_vars.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/env_vars.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/logging_chrome.h View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/common/logging_chrome.cc View 1 2 3 4 5 4 chunks +32 lines, -6 lines 0 comments Download
M chrome/test/in_process_browser_test.cc View 2 chunks +5 lines, -0 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
Greg Spencer (Chromium)
10 years, 1 month ago (2010-10-29 23:15:42 UTC) #1
DaveMoore
http://codereview.chromium.org/4194005/diff/9001/10005 File chrome/common/logging_chrome.cc (right): http://codereview.chromium.org/4194005/diff/9001/10005#newcode157 chrome/common/logging_chrome.cc:157: if (env->GetVar(env_vars::kSessionLogDir, &log_dir_str) && It surprises me that environment ...
10 years, 1 month ago (2010-11-01 18:08:29 UTC) #2
Greg Spencer (Chromium)
http://codereview.chromium.org/4194005/diff/9001/10005 File chrome/common/logging_chrome.cc (right): http://codereview.chromium.org/4194005/diff/9001/10005#newcode157 chrome/common/logging_chrome.cc:157: if (env->GetVar(env_vars::kSessionLogDir, &log_dir_str) && On 2010/11/01 18:08:29, davemoore wrote: ...
10 years, 1 month ago (2010-11-01 18:16:41 UTC) #3
DaveMoore
Ok. LGTM
10 years, 1 month ago (2010-11-01 18:22:00 UTC) #4
Greg Spencer (Chromium)
Dave, can you take a quick look at this again? I removed the DCHECK to ...
10 years, 1 month ago (2010-11-01 22:59:59 UTC) #5
DaveMoore
LGTM. Note: For the next release we are going to go back and clean up ...
10 years, 1 month ago (2010-11-02 17:50:53 UTC) #6
Greg Spencer (Chromium)
10 years, 1 month ago (2010-11-02 18:02:36 UTC) #7
On Tue, Nov 2, 2010 at 10:50 AM, <davemoore@chromium.org> wrote:

> LGTM.
>
> Note: For the next release we are going to go back and clean up the whole
> chromeos / logging story. It's gotten totally out of hand and is way too
> complicated.


Completely agreed.  I filed a bug to that effect already (
http://code.google.com/p/chromium/issues/detail?id=61143)

Powered by Google App Engine
This is Rietveld 408576698