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

Issue 4380001: Mac Sandbox: Clean up forward declaration of internal sandbox functions. (Closed)

Created:
10 years, 1 month ago by jeremy
Modified:
9 years, 6 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Mac Sandbox: Clean up forward declaration of internal sandbox functions. Move all Sandbox functions into their own class and declare functions needed by tests as private with FRIEND_TEST declarations where appropriate. BUG=60917 TEST=Chrome on Mac should run and unit tests should pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65332

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -172 lines) Patch
M chrome/common/sandbox_init_wrapper_mac.cc View 4 chunks +9 lines, -7 lines 1 comment Download
M chrome/common/sandbox_mac.h View 1 2 chunks +134 lines, -45 lines 5 comments Download
M chrome/common/sandbox_mac.mm View 1 9 chunks +27 lines, -69 lines 0 comments Download
M chrome/common/sandbox_mac_diraccess_unittest.mm View 10 chunks +23 lines, -41 lines 0 comments Download
M chrome/common/sandbox_mac_fontloading_unittest.mm View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/sandbox_mac_unittest_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/sandbox_mac_unittest_helper.mm View 5 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
jeremy
10 years, 1 month ago (2010-11-03 14:28:36 UTC) #1
Mark Mentovai
10 years, 1 month ago (2010-11-04 16:19:29 UTC) #2
LGTM

http://codereview.chromium.org/4380001/diff/3001/4001
File chrome/common/sandbox_init_wrapper_mac.cc (right):

http://codereview.chromium.org/4380001/diff/3001/4001#newcode1
chrome/common/sandbox_init_wrapper_mac.cc:1: // Copyright (c) 2010 The Chromium
Authors. All rights reserved.
CL description: “clean up” as a verb is two words.

http://codereview.chromium.org/4380001/diff/3001/4002
File chrome/common/sandbox_mac.h (right):

http://codereview.chromium.org/4380001/diff/3001/4002#newcode58
chrome/common/sandbox_mac.h:58: SandboxVariableSubstitions;
The hanging continuation indent is 4 spaces.

http://codereview.chromium.org/4380001/diff/3001/4002#newcode65
chrome/common/sandbox_mac.h:65: // The worker processes uses the most
restrictive sandbox which has almost
“processes use” or “process uses.”

http://codereview.chromium.org/4380001/diff/3001/4002#newcode120
chrome/common/sandbox_mac.h:120: // The ;10.6_ONLY comment can then be removed
from the template to enable (foo)
80

http://codereview.chromium.org/4380001/diff/3001/4002#newcode143
chrome/common/sandbox_mac.h:143: // Escape |str_utf8| for use in a plain string
variable in a sandbox
In these functions, str_utf8 doesn’t seem like a great name. Why isn’t the dst
parameter named dst_utf8? If you have a dst, why don’t you have a src?

http://codereview.chromium.org/4380001/diff/3001/4002#newcode173
chrome/common/sandbox_mac.h:173: DISALLOW_COPY_AND_ASSIGN(Sandbox);
Use DISALLOW_IMPLICIT_CONSTRUCTORS on this one instead.

Powered by Google App Engine
This is Rietveld 408576698