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

Issue 2802018: Loosen permission on extension temp dir when a flag is used. (Closed)

Created:
10 years, 6 months ago by Sam Kerner (Chrome)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, John Grabowski, Paweł Hajdan Jr., pam+watch_chromium.org, brettw-cc_chromium.org, ben+cc_chromium.org, Erik does not do reviews, Aaron Boodman
Base URL:
git://codf21.jail/chromium.git
Visibility:
Public.

Description

Loosen permission on extension temp dir when a flag is used. Issue 35198 can not be reproduced locally. To enable users to do experiments, three command line flags are added to chrome: --issue35198-crxdir-browser: Have the browser process create the directory in which the extension will be unzipped. --issue35198-logging: Enable log messages from directory creation in the utility process to be moved to the browser process. --issue35198-permission: Use the most permissive file permissions possible on the extension unpack directory. BUG=35198 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51231 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51416

Patch Set 1 : Re-add non-dead code. #

Patch Set 2 : Add command line flags. #

Patch Set 3 : Rebase again. #

Total comments: 4

Patch Set 4 : Address Darin's comments. #

Total comments: 2

Patch Set 5 : Rebase for commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -13 lines) Patch
M base/file_util.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M base/file_util_posix.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M base/file_util_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M base/file_util_win.cc View 1 2 3 5 chunks +69 lines, -2 lines 0 comments Download
M base/scoped_temp_dir.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/scoped_temp_dir.cc View 1 2 3 2 chunks +8 lines, -3 lines 0 comments Download
M base/scoped_temp_dir_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker.cc View 3 chunks +20 lines, -4 lines 0 comments Download
M chrome/browser/utility_process_host.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_unpacker.cc View 3 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Sam Kerner (Chrome)
10 years, 5 months ago (2010-06-28 20:28:52 UTC) #1
tkent
LGTM. I don't like such ugly command-line switches, but we need them...
10 years, 5 months ago (2010-06-29 05:01:39 UTC) #2
Sam Kerner (Chrome)
On 2010/06/29 05:01:39, Kent Tamura wrote: > > I don't like such ugly command-line switches, ...
10 years, 5 months ago (2010-06-29 15:13:10 UTC) #3
darin (slow to review)
http://codereview.chromium.org/2802018/diff/3006/17001 File base/file_util.h (right): http://codereview.chromium.org/2802018/diff/3006/17001#newcode271 base/file_util.h:271: bool lossen_permissions); style-nit: out parameters are supposed to be ...
10 years, 5 months ago (2010-06-30 06:16:02 UTC) #4
Sam Kerner (Chrome)
http://codereview.chromium.org/2802018/diff/3006/17001 File base/file_util.h (right): http://codereview.chromium.org/2802018/diff/3006/17001#newcode271 base/file_util.h:271: bool lossen_permissions); On 2010/06/30 06:16:02, darin wrote: > style-nit: ...
10 years, 5 months ago (2010-06-30 18:46:03 UTC) #5
darin (slow to review)
LGTM http://codereview.chromium.org/2802018/diff/15002/24002 File base/file_util_posix.cc (right): http://codereview.chromium.org/2802018/diff/15002/24002#newcode438 base/file_util_posix.cc:438: CHECK(!loosen_permissions); nit: I think this can just be ...
10 years, 5 months ago (2010-07-01 17:07:25 UTC) #6
Sam Kerner (Chrome)
10 years, 5 months ago (2010-07-01 20:15:08 UTC) #7
http://codereview.chromium.org/2802018/diff/15002/24002
File base/file_util_posix.cc (right):

http://codereview.chromium.org/2802018/diff/15002/24002#newcode438
base/file_util_posix.cc:438: CHECK(!loosen_permissions);
On 2010/07/01 17:07:25, darin wrote:
> nit: I think this can just be a DCHECK since you are trying to slap developers
> for misusing this function.  you don't need a crash report do you?

Changed to DCHECK.

Powered by Google App Engine
This is Rietveld 408576698