0
Commit Graph

50 Commits

Author SHA1 Message Date
Evan Stade
526e35a6ec Mac sandbox: don't use protobuf for policy serialization
This change replaces protobuf with a custom serialization routine.
Some of the utilities for encoding ints and blobs are lifted from
IndexedDB code.

The change also:
- deletes CompileAndApplyProfile, which was only used in unit tests.
  The tests are updated to verify production code instead, so test
  coverage is better.
- Renames SandboxCompiler to SandboxSerializer. This is more
  accurate as "compiling" is a separate step provided by Mac system
  utilities.
- Co-locates all serialization and de-serialization code in
  SandboxSerializer, making it easier to understand and, if
  desired, modify. Previously, these steps were spread across
  SandboxCompiler and sandbox_exec.cc.

Bug: 328417294
Change-Id: I41bdffdb5331a0bfd979942b079fe5dd3670fe53
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6208630
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Evan Stade <estade@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1414452}
2025-01-31 16:09:37 -08:00
Mark Rowe
c64e2d61dd Remove NaCL and PPAPI code from Mac sandbox
NaCL was disabled on Mac at the end of 2023 and PPAPI was disabled
shortly after. They are no longer supported on macOS.

The NaCL loader and PPAPI sandbox profiles are removed, as are all references to both technologies within Mac-specific code.

Fixed: 335686683
Change-Id: Ide63bd7d8e683317ddc8bd697b38e4ff2b512831
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5770897
Reviewed-by: Will Harris <wfh@chromium.org>
Auto-Submit: Mark Rowe <markrowe@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1338913}
2024-08-08 07:40:16 +00:00
Avi Drissman
d6204437c6 Assume macOS 11+ in /content
Bug: 41491897
Change-Id: Ic789e816703fe9df1e28422e701eafc902084190
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5738733
Commit-Queue: Marijn Kruisselbrink <mek@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: Marijn Kruisselbrink <mek@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1333599}
2024-07-26 16:30:15 +00:00
David Benjamin
0a02b73e8c Remove now unnecessary EnsureOpenSSLInit and CRYPTO_library_init calls
BoringSSL now initializes itself internally, so there is no need to
initialize it before calling into it. (In fact, CRYPTO_library_init is
now a no-op.)

Fixed: 348923058
Change-Id: I09a69c3d1f76f9ac3eb7c93bae225f188a008205
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5650103
Reviewed-by: Brando Socarras <brandosocarras@google.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Mark Rowe <markrowe@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Commit-Queue: David Benjamin <davidben@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Reviewed-by: Jon Mann <jonmann@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1321077}
2024-06-28 18:15:02 +00:00
Claudio DeSouza
35eb773f01 Replace StringPiece with std::string_view in //content/browser
For a while base::StringPiece has been merely an alias to string_view.
This CL removes all the uses of base::StringPiece and its variants from
//content/browser

Bug: 40506050
Change-Id: I658c76ac954e2e476201615252d670b0a6a66dc3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5555576
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Claudio DeSouza <cdesouza@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1309279}
2024-06-03 13:00:51 +00:00
Avi Drissman
eac566b060 Move foundation_util to base/apple, leave a forwarding header
Crashpad is not yet updated for the new location, so leave a
forwarding header to be removed later.

Skipping trybots. This is a Mac change, and it’s passing all
trybots except for android_optional_gpu_tests_rel that is
repeatedly failing on an unrelated issue.

NOTRY=true

Bug: 1444927
Cq-Include-Trybots: luci.chrome.try:mac-chrome
Change-Id: Iad0c903187b0e1e5584c68f2eb00b5b026085596
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4790744
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1185029}
2023-08-18 02:56:21 +00:00
Avi Drissman
a09d7dda2e Move scoped_cftypreref to base/apple, leave a forwarding header
Crashpad is not yet updated for the new location, so leave a
forwarding header to be removed later.

Bug: 1444927
Change-Id: Ib00aa68980726f7702f740d543953abe397ffddc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4790741
Owners-Override: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1184758}
2023-08-17 16:26:58 +00:00
Avi Drissman
9bf75c5e9a Remove ARC boilerplate in /content
ARC is now enabled by default, so there’s no need to enforce it
against files being put into non-ARC targets.

Bug: 1468376
Change-Id: If25307bfbea5a1df8937b433dde5fa83871cff74
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4738888
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1178112}
2023-08-01 22:39:26 +00:00
Avi Drissman
9390d28878 Remove 10.13 support
This macOS release is no longer supported by Chromium.

Bug: 1410851
Change-Id: Icfa3d75497e40e326177d3b56c6ff1346b7b52cd
Cq-Include-Trybots: luci.chrome.try:mac-chrome
Validate-Test-Flakiness: skip
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4641746
Reviewed-by: Dominic Battre <battre@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Victor Miura <vmiura@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Tommy Steimel <steimel@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1162665}
2023-06-26 23:14:49 +00:00
Avi Drissman
7ed0553d4e Convert content_unittests to use ARC
See https://chromium.googlesource.com/chromium/src/+/main/docs/mac/arc.md
for information about this conversion.

Bug: 1280317
Change-Id: I89135f8b922d0f636b228f56d6d736757bda0efb
Include-Ci-Only-Tests: true
Cq-Include-Trybots: luci.chromium.try:ios-blink-dbg-fyi
Cq-Include-Trybots: luci.chrome.try:mac-chrome
Validate-Test-Flakiness: skip
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4561625
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Reviewed-by: Joe Mason <joenotcharles@google.com>
Auto-Submit: Avi Drissman <avi@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1154046}
2023-06-06 20:34:29 +00:00
Mark Rowe
21cc9abef2 Remove WebSandboxSupport::LoadFont
Since at least as far back as macOS 10.13, CoreText and fontd transparently issue a sandbox extension when an application attempts to use a font that is outside of its sandbox. This means it is not necessary for the browser process to load a font on behalf of the render process.

Change-Id: I8ba957ccd616ffde73543f95c885be87c361dbd8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4205854
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Mark Rowe <markrowe@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1099914}
2023-02-01 17:25:32 +00:00
Avi Drissman
adac219925 Update header includes for /base/functional in /content
bind.h, callback.h, callback_forward.h, and callback_helpers.h
moved into /base/functional/. Update the include paths to
directly include them in their new location.

Bug: 1364441
Change-Id: I32ec425b9c0e52ec4b50047bf3290fecc5c905ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4148554
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1091567}
2023-01-11 23:46:39 +00:00
Robert Sesek
01b092c088 mac: Remove absl dependency from //sandbox/mac:seatbelt
Switch from using absl::optional to bool+output parameter.

Bug: 1315988
Change-Id: I60aa6c13cca78ab4d3ade514656547517073b8d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4085978
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1081478}
2022-12-09 15:46:54 +00:00
Robert Sesek
32eca1edf1 mac: Add support for compiling sandbox profiles to the binary format
In the future, this will let profiles be pre-compiled and reused across
multiple process launches. This adds the support to the SandboxCompiler
and SeatbeltExec classes.

Bug: 1315988
Change-Id: I32a4f0b9adbc9c7c96f94afae7a643add0457452
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4079319
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1079413}
2022-12-05 21:24:49 +00:00
Robert Sesek
794b08292d mac: Use SandboxCompiler to generate the policy for SeatbeltExecClient
Previously, SeatbeltExecClient would build up the policy proto itself,
without using the SandboxCompiler. This plumbs the change through
//content so that parameter specification now happens on the
SandboxCompiler, rather than the SeatbeltExecClient.

Bug: 1315988
Change-Id: I08f5bb39ab7bf7f05ef16f5290e4c45bcd9ffc1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4072565
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1079238}
2022-12-05 15:22:27 +00:00
Lei Zhang
7084e78c4e Mac: Call PluginService::GetInternalPlugins() on the UI thread.
As PluginService will only be accessible on the UI thread in the near
future, the Mac-only caller in SetupPPAPISandboxParameters() can no
longer call it directly on the process launcher thread. Instead, this CL
updates ChildProcessLauncher to call GetInternalPlugins() on the UI
thread, and pass the results to ChildProcessLauncherHelper, which then
passes it into SetupPPAPISandboxParameters().

Bug: 990013
Change-Id: I2e8e144d3982cd498726a6b3125f2ee75d7e9178
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3933904
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1057218}
2022-10-10 23:49:39 +00:00
Avi Drissman
4e1b7bc33d Update copyright headers in content/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c34.

No-Try: true
No-Presubmit: true
Bug: 1098010
Change-Id: I8c0f009d16350271f07d8e5e561085822cc9dd27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3895935
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047456}
2022-09-15 14:03:50 +00:00
K. Moon
42185e232b Switch //sandbox to use ENABLE_PPAPI
Switches //sandbox to use the ENABLE_PPAPI buildflag for PPAPI-specific
code, rather than the more general ENABLE_PLUGINS buildflag.

This essentially is equivalent to making the Sandbox::kPpapi enum
conditional on enable_ppapi, instead of enable_plugins.

Bug: 1306610
Change-Id: Ia9cb4c62a2a7778012188d6a9834400ef6fffd12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3840632
Reviewed-by: Mark Mentovai <mark@chromium.org>
Reviewed-by: James Forshaw <forshaw@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Auto-Submit: K. Moon <kmoon@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Commit-Queue: Jorge Lucangeli Obes <jorgelo@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1037940}
2022-08-22 21:10:38 +00:00
Lei Zhang
9ca1c2be6b Fix Mac build with enable_plugins=false.
Remove spurious includes of plugin headers, and add appropriate #ifs.

Bug: 1027360
Change-Id: I445252f5de14dff8e89ab371429a24ad3e57ca97
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3719213
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Thomas Lukaszewicz <tluk@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1017248}
2022-06-23 17:54:12 +00:00
Avi Drissman
ad89a390f6 Remove OS X 10.11 and macOS 10.12 code from content/
Bug: 1322548
Fixed: 938074
Change-Id: I29675849b31871bfeebc0e8112da8c91ee00917f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3651773
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1004462}
2022-05-17 21:21:30 +00:00
Daniel Cheng
93c8896ee7 [mac] Switch font loading helper to the //base shmem API.
In Chrome, Mojom interfaces should avoid using handle<shared_buffer>
and prefer one of the higher-level //base primitives instead.

Fixed: 1306363
Change-Id: I479448c00612fe61fa9e57976c24f6e584ba5a5d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3528195
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#982532}
2022-03-18 00:54:48 +00:00
Alex Gough
7242135038 Create kServiceWithJit sandbox type
This creates a utility sandbox that locks down as much as possible but
does allow dynamic code execution from within the sandbox. Its initial
purpose will be to host the AuctionWorkletService which runs web
supplied javascript and wasm but otherwise does not need access to
system resources.

Bug: 1272034
Tests: content_browsertests
Change-Id: I0cb626008b9662a8696a6fcf5b837f1c47d4b2fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3331179
Reviewed-by: Wez <wez@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Will Harris <wfh@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Reviewed-by: Matthew Denton <mpdenton@chromium.org>
Commit-Queue: Alex Gough <ajgo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#953168}
2021-12-21 11:08:31 +00:00
Alex Gough
eb6a38f6fa Replace sandbox::policy::SandboxType with mojom Sandbox enum
sandbox.mojom.Sandbox can now be used as the sandbox type so we
replace it everywhere.

The guts of the change are in //sandbox/policy/sandbox_type.h where
SandboxType is now deleted, and //sandbox/policy/mojom/sandbox.mojom
where sandbox types that are not already used in mojom ServiceSandbox
attributes are added.

Some cascading changes:-

 - kService wasn't implemented on Mac (as it is equivalent to kUtility).
 As we cannot alias enum fields in mojo like we can in C++ I have added
 kService for Mac. The alternative is to define platform specific
 ServiceSandbox attributes for all kService interfaces which seems to
 put this complexity in the wrong place.
 - sandbox_type.h included a number of buildflag headers that other files
 then relied on. As sandbox_type.h is no longer needed in many places
 and no longer needs these defines, they have been introduced where
 required.
 - sandbox::mojom::Sandbox is forward declared in a couple of headers
 that are widely imported, hopefully reducing the number of times the
 mojom.h is included but not used.
 - some build deps must be modified.
 - LibAssistantService needs a sandbox to be defined even when hosted
 in process, so has kNoSandbox now when enable_cros_libassistant is
 false.

Bug: 1210301
Change-Id: I13fa4fa8cbbb3090a38806fe5532787bbdf1e2fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3213677
Reviewed-by: Charlie Reis <creis@chromium.org>
Reviewed-by: Sean Topping <seantopping@chromium.org>
Reviewed-by: Filip Gorski <fgorski@chromium.org>
Reviewed-by: Derek Schuff <dschuff@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Reviewed-by: Tao Wu <wutao@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Will Harris <wfh@chromium.org>
Reviewed-by: Matthew Denton <mpdenton@chromium.org>
Reviewed-by: David Dorwin <ddorwin@chromium.org>
Commit-Queue: Alex Gough <ajgo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#934126}
2021-10-22 01:55:13 +00:00
Lei Zhang
c9e8a167c1 Change base::WriteFileDescriptor() to take a span or StringPiece.
Use a single parameter for the data, instead of separate data/size
parameters. Fix some nits and lint errors along the way.

Bug: 418837
Change-Id: I5c791d84c3cdb712c7aa4ce098caeab424e9c343
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2895444
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#882924}
2021-05-14 09:33:52 +00:00
Robert Sesek
5aef352437 mac: De-class-ify sandbox::policy::SandboxMac.
Move the two static functions on the class to be free functions. Delete
the class.

Change-Id: I57676f9c46f19f52abc95aebe707fa4c71885575
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2826476
Auto-Submit: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Greg Kerr <kerrnel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#872599}
2021-04-14 22:48:23 +00:00
Jan Wilken Dörrie
8aeb574da9 [LSC] Remove base::ASCIIToUTF16("...") in //content and //ui
This change removes calls to base::ASCIIToUTF16 in //content and //ui
with a single-line string literal and replaces them with a u"..."
literal instead. Files where this change would cause compilation errors
were not changed.

This is a mechanical change:

$ git grep -lw ASCIIToUTF16 content ui | xargs \
    sed -i 's/\(base::\)\?ASCIIToUTF16(\("\(\\.\|[^\\"]\)*"\))/u\2/g'
$ git cl format

Bug: 1189439
Change-Id: I0d5601dc15324c43012b8d26260405f1efdca07e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2780265
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Jan Wilken Dörrie <jdoerrie@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#865766}
2021-03-23 19:27:02 +00:00
Alan Screen
8715f57e7f Sandbox configuration for Print Backend service
The default sandbox for the Print Backend service causes interactions to
fail due to access denied errors when trying to interact with the
operating system and printer drivers.

Adjust some of the sandbox settings for each desktop OS so that the
necessary calls can operate as needed.

Bug: 809738
Change-Id: I8bc987b9e9235ec6427e999eb7a44797c457fa9d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2422324
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Will Harris <wfh@chromium.org>
Commit-Queue: Alan Screen <awscreen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#859155}
2021-03-02 22:53:17 +00:00
Robert Sesek
18af61b5f5 mac: Remove code to support OS X 10.10 in //content
AX-Relnotes: n/a.
Bug: 1153883
Change-Id: Iff9f2d2dd72314f04c11b0b87ff2438655a16335
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2572177
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#833503}
2020-12-03 23:47:33 +00:00
Robert Sesek
6826fb6897 mac: Allow reading Managed Preferences within the sandbox.
This allows reading the Managed Preferences equivalent of the existing
preference path allow rules in common.sb.

This also allows reading ~/Library/Preferences/com.apple.security.plist
in network.sb.

Bug: 1134449
Change-Id: I42d414e5133c5931907d38c2bdb26d1431f837e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2535650
Reviewed-by: Greg Kerr <kerrnel@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#826992}
2020-11-12 22:23:17 +00:00
Robert Sesek
8c3ca5eb11 Fix content_unittests SandboxMacTest.BuiltinAvailable on pre-10.13.
Bug: 1114242, 1113952
Change-Id: Ie4ac3587177024f3c14bdca10515d5291063e1c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2342255
Reviewed-by: Dominique Fauteux-Chapleau <domfc@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#796043}
2020-08-07 19:22:57 +00:00
Robert Sesek
955648b59d Permit reading /System/Library/CoreServices/SystemVersionCompat.plist in the sandbox.
This is a new file on macOS 11 Big Sur.

Bug: 1113952
Change-Id: I8280ef793f6da3fe6e85ba9d23a7d5e8188f2371
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2342573
Reviewed-by: Greg Kerr <kerrnel@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#795976}
2020-08-07 17:18:24 +00:00
Robert Sesek
7d0b49b0aa Move //services/service_manager/sandbox to //sandbox/policy.
Originally the sandbox policies lived in //content, but with
servicification this would create unwanted dependencies between
//services and //content. Instead, create a new //sandbox/policy
library to hold the sandbox integration code. This library can depend
on the low-level //sandbox routines, but not nice versa.

Tbr: ajgo@chromium.org (mechanical change rule)
Bug: 1097376
Change-Id: I1ca9ac0015a625197f2d3aae104e8f7aa78dcfd9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2272609
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Alex Gough <ajgo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786385}
2020-07-08 18:31:27 +00:00
Lei Zhang
045cf38bf1 Switch to 1-parameter version of base::DeleteFile() in content/.
The 1-parameter version is simpler, and the 2-parameter version is
deprecated.

Bug: 1009837
Change-Id: Ica2cc17aebd7bd98df425940f8518c78a2c8a3f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2284356
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786000}
2020-07-07 21:30:16 +00:00
Greg Thompson
f75f5fb6b1 ImportantFileWriter: Fix races part 1.
This CL renames CreateAndOpenTemporaryFile{,InDir} to
CreateAndOpenTemporaryStream{,InDir} and changes the return type to a
ScopedFILE. As a result, the name "CreateAndOpenTemporaryFile" is now
available for a future function that returns a base::File.

BUG=1075917
TBR=jam@chromium.org

Change-Id: Ib79613ed63e552df5c13d2e4e7078e0c16b42b5d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2166175
Commit-Queue: Greg Thompson <grt@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#764175}
2020-04-30 08:13:25 +00:00
Dominik Röttsches
9237ba41c9 Avoid double CTFont creation by passing through data descriptor
The out-of-process font loader, now that it has moved to using
CTFontManagerCreateFontDescriptorFromData, does not need to create a
full CTFontRef anymore, but can instead wrap the out-of-process font
data into a CTFontDescriptorRef built from data. Doing that avoids
creating an extra CTFont copy in font_platform_data_mac, as we can merge
the data descriptor with the cascade list attributes, and only then
create the CTFontRef from it.

Bug: 1033478
Change-Id: I025c265caf472578fd77a11acbc4b23a1d8fffb2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2013289
Commit-Queue: Dominik Röttsches <drott@chromium.org>
Auto-Submit: Dominik Röttsches <drott@chromium.org>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735353}
2020-01-27 10:19:07 +00:00
Dominik Röttsches
0f9ebc64ba Load OOP Mac system fonts without CGFont API
Match Skia in not creating buffer-based fonts through CGFonts and
CTFontCreateWithGraphicsFont any more, but instead use
CTFontManagerCreateFontDescriptorFromData. This enables cleanup in Skia
removing the CGFont parameter from SkCreateTypefaceFromCTFont, after
Skia moved to using CTFontManagerCreateFontDescriptorFromData in [1].

[1] https://skia-review.googlesource.com/c/skia/+/257052

Bug: 1033478
Change-Id: I4048b683659e40eead9939697c4900a935623627
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1964073
Commit-Queue: Dominik Röttsches <drott@chromium.org>
Reviewed-by: Ben Wagner <bungeman@chromium.org>
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#734008}
2020-01-22 15:14:27 +00:00
Alan Screen
6cef2c8459 PDF Compositor rename to Print Compositor
The PDF Compositor is being updated to perform composition for both PDF
and XPS documents.  Rename the service to more accurately reflect this
expanded scope of the service.

This CL is just to do the rename without any new XPS functionality yet;
that will come in later CLs.

Bug: 1008222
Change-Id: I2233e1590f5862da8f4bc50025f699e4dc1fbad3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1981135
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Will Harris <wfh@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Daniel Hosseinian <dhoss@chromium.org>
Commit-Queue: Alan Screen <awscreen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#731613}
2020-01-14 20:58:52 +00:00
Alex Gough
9ab468a6c3 Use enum class for service_manager::SandboxType.
Removes unused kNaClLoader (was PROCESS_TYPE_NACL_LOADER)
from Windows as these are in fact Ppapi (PPAPI) sandbox types.

Removes unused values from SandboxType enum and replaces default cases.

SandboxType is not used for iteration so these boundary values are removed
from the SandboxType enum.

The kInvalid SandboxType is retained as it is used as an error case in
a couple of places. It might be possible to remove this in the future.

This removes default cases from switch statements where it might make
sense to have a notification in future when new sandbox types are added.
In these cases the default case is replaced with all otherwise
unchecked cases, so retaining the existing behavior.

Change-Id: I76ffc8ae617f3f8fa9aa68236551ebcfa4cce32f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1938076
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Will Harris <wfh@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Alex Gough <ajgo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#723425}
2019-12-10 19:10:22 +00:00
Alex Ilin
cf96655e16 Reland "[base] Remove base::SharedMemory and base::SharedMemoryHandle"
This reverts commit 8c36510cc3.

Reason for revert: Added missing include on ChromeOS.

Original change's description:
> Revert "[base] Remove base::SharedMemory and base::SharedMemoryHandle"
> 
> This reverts commit fa7e8cc73e.
> 
> Reason for revert: It looks like there was at least one missed instance of transitively including file_util. Sample build log: https://ci.chromium.org/p/chrome/builders/ci/chromeos-kevin-google-rel/4373
> 
> Original change's description:
> > [base] Remove base::SharedMemory and base::SharedMemoryHandle
> > 
> > There are no users of the deprecated shared memory left, so its code
> > can safely removed.
> > 
> > To use shared memory in Chrome, please refer to
> > base::WritableSharedMemoryRegion and base::ReadOnlySharedMemoryRegion
> > classes.
> > 
> > This CL removes all remaining #includes of
> > "base/memory/shared_memory.h" and
> > "base/memory/shared_memory_handle.h". They are replaced by new shared
> > memory includes when needed.
> > 
> > It also appears that "base/files/file_util.h" and
> > "base/posix/eintr_wrapper.h" were transitively included in many places
> > through the removed files. This CL includes them explicitly in all
> > those files.
> > 
> > TBR: wfh@chromium.org
> > Bug: 795291
> > Change-Id: I97ecac4b529c0ad6498b6e5ccf01515f750448ad
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1919152
> > Commit-Queue: Alex Ilin <alexilin@chromium.org>
> > Reviewed-by: Daniel Cheng <dcheng@chromium.org>
> > Reviewed-by: Jochen Eisinger <jochen@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#717588}
> 
> TBR=dcheng@chromium.org,jochen@chromium.org,alexilin@chromium.org
> 
> Change-Id: I16c6e4c2ada01240d577706478cf739ce1061ee5
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 795291
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1929252
> Reviewed-by: Tommy Martino <tmartino@chromium.org>
> Commit-Queue: Tommy Martino <tmartino@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#717644}

TBR=dcheng@chromium.org,tmartino@chromium.org,jochen@chromium.org,alexilin@chromium.org

Change-Id: I437cf7f93965858840170eb49b2d611b37e79b25
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 795291
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1929221
Reviewed-by: Alex Ilin <alexilin@chromium.org>
Commit-Queue: Alex Ilin <alexilin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#717663}
2019-11-21 16:13:52 +00:00
Tommy Martino
8c36510cc3 Revert "[base] Remove base::SharedMemory and base::SharedMemoryHandle"
This reverts commit fa7e8cc73e.

Reason for revert: It looks like there was at least one missed instance of transitively including file_util. Sample build log: https://ci.chromium.org/p/chrome/builders/ci/chromeos-kevin-google-rel/4373

Original change's description:
> [base] Remove base::SharedMemory and base::SharedMemoryHandle
> 
> There are no users of the deprecated shared memory left, so its code
> can safely removed.
> 
> To use shared memory in Chrome, please refer to
> base::WritableSharedMemoryRegion and base::ReadOnlySharedMemoryRegion
> classes.
> 
> This CL removes all remaining #includes of
> "base/memory/shared_memory.h" and
> "base/memory/shared_memory_handle.h". They are replaced by new shared
> memory includes when needed.
> 
> It also appears that "base/files/file_util.h" and
> "base/posix/eintr_wrapper.h" were transitively included in many places
> through the removed files. This CL includes them explicitly in all
> those files.
> 
> TBR: wfh@chromium.org
> Bug: 795291
> Change-Id: I97ecac4b529c0ad6498b6e5ccf01515f750448ad
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1919152
> Commit-Queue: Alex Ilin <alexilin@chromium.org>
> Reviewed-by: Daniel Cheng <dcheng@chromium.org>
> Reviewed-by: Jochen Eisinger <jochen@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#717588}

TBR=dcheng@chromium.org,jochen@chromium.org,alexilin@chromium.org

Change-Id: I16c6e4c2ada01240d577706478cf739ce1061ee5
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 795291
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1929252
Reviewed-by: Tommy Martino <tmartino@chromium.org>
Commit-Queue: Tommy Martino <tmartino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#717644}
2019-11-21 15:14:58 +00:00
Alex Ilin
fa7e8cc73e [base] Remove base::SharedMemory and base::SharedMemoryHandle
There are no users of the deprecated shared memory left, so its code
can safely removed.

To use shared memory in Chrome, please refer to
base::WritableSharedMemoryRegion and base::ReadOnlySharedMemoryRegion
classes.

This CL removes all remaining #includes of
"base/memory/shared_memory.h" and
"base/memory/shared_memory_handle.h". They are replaced by new shared
memory includes when needed.

It also appears that "base/files/file_util.h" and
"base/posix/eintr_wrapper.h" were transitively included in many places
through the removed files. This CL includes them explicitly in all
those files.

TBR: wfh@chromium.org
Bug: 795291
Change-Id: I97ecac4b529c0ad6498b6e5ccf01515f750448ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1919152
Commit-Queue: Alex Ilin <alexilin@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#717588}
2019-11-21 11:05:52 +00:00
Greg Kerr
b7fdb79bd8 macOS V2 Sandbox: Refactor code for cleanup.
This refactors some of the V2 sandbox setup code to keep things clean
and tidy.

Bug: 917445
Change-Id: I95e7bebac8b01cecabfdaafb6e8b4fa693e6e611
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1579183
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Charlie Reis <creis@chromium.org>
Commit-Queue: Greg Kerr <kerrnel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653807}
2019-04-24 23:05:46 +00:00
Robert Sesek
1de60697b3 Delete unused V1 Mac sandbox profiles.
- The V1 common.sb file is merged into the V1 gpu.sb file. The GPU
  sandbox will be moved to V2 as part of https://crbug.com/915934.
- common_v2.sb, renderer_v2.sb, and ppapi_v2.sb all lose their "_v2"
  suffix and replace the V1 file by the same name.
- sandbox_mac.mm is thinned out to only support the V1 GPU sandbox.

No intended behavior change.

Bug: 689306
Change-Id: Icfc36c5a7b1907e0c93d6a87bdd1d0ffe18cf616
Reviewed-on: https://chromium-review.googlesource.com/c/1380554
Reviewed-by: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#617638}
2018-12-18 21:43:30 +00:00
Greg Kerr
95d0a57ff6 Reland "macOS Sandbox: Port fontloading test to V2 sandbox."
This is a reland of 1d979043f0

Original change's description:
> macOS Sandbox: Port fontloading test to V2 sandbox.
> 
> This removes all of the obsolete unit testing code from the V1 sandbox.
> 
> Bug: 902597
> Change-Id: I426e3b815e0bf23036815750aab350adbb22e068
> Reviewed-on: https://chromium-review.googlesource.com/c/1327527
> Commit-Queue: Greg Kerr <kerrnel@chromium.org>
> Reviewed-by: Robert Sesek <rsesek@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#612416}

Bug: 902597
Change-Id: I2088dd954956be6d704add7ee8e07bc629df8eb9
Reviewed-on: https://chromium-review.googlesource.com/c/1357217
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Greg Kerr <kerrnel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612797}
2018-11-30 21:41:12 +00:00
Giovanni Ortuño Urquidi
1d2514d801 Revert "macOS Sandbox: Port fontloading test to V2 sandbox."
This reverts commit 1d979043f0.

Reason for revert: SandboxMacTests failing on Mac10.10 Tests

https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Mac10.10%20Tests/36825

[ RUN      ] SandboxMacTest.FontLoadingTest
[1000:779:1129/160013.776478:988116558481:WARNING:test_suite.cc(257)] Test launcher output path /b/s/w/itucGTyo/.org.chromium.Chromium.qx9Sed/test_results.xml exists. Not adding test launcher result printer.
Nov 29 16:00:13 vm132-m1.golo.chromium.org content_unittests[1000] <Error>: SeatbeltExecServer: Failed to initialize sandbox: -1 line 163: subpaths must not end with a slash
[1000:779:1129/160013.839716:988179793263:FATAL:sandbox_mac_unittest.mm(177)] Check failed: result.server->InitializeSandbox().
0   content_unittests                   0x000000010519dc1f base::debug::StackTrace::StackTrace(unsigned long) + 31
1   content_unittests                   0x00000001050d871f logging::LogMessage::~LogMessage() + 223
2   content_unittests                   0x000000010170d8b2 content::(anonymous namespace)::CheckCreateSeatbeltServer() + 562
3   content_unittests                   0x000000010170e389 content::FontLoadingProcess() + 473
4   content_unittests                   0x0000000104587138 base::TestSuite::Run() + 104
5   content_unittests                   0x000000010459f43a base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) + 282
6   content_unittests                   0x000000010459f2ea base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) + 154
7   content_unittests                   0x00000001044df9df main + 191
8   libdyld.dylib                       0x00007fff8f5845c9 start + 1

../../content/browser/sandbox_mac_unittest.mm:90: Failure
Expected equality of these values:
  0
  rv
    Which is: 1
Stack trace:
0   content_unittests                   0x0000000102cbd93b testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(int) + 91
1   content_unittests                   0x0000000102cbd2f9 testing::internal::AssertHelper::operator=(testing::Message const&) const + 89
2   content_unittests                   0x000000010199ea19 content::(anonymous namespace)::SandboxMacTest::ExecuteWithParams(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, void (*)(sandbox::SeatbeltExecClient*)) + 1625
3   content_unittests                   0x000000010199ca4c content::(anonymous namespace)::SandboxMacTest::ExecuteInRendererSandbox(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 172
4   content_unittests                   0x000000010199db5e content::SandboxMacTest_FontLoadingTest_Test::TestBody() + 1278

[  FAILED  ] SandboxMacTest.FontLoadingTest (286 ms)

Original change's description:
> macOS Sandbox: Port fontloading test to V2 sandbox.
> 
> This removes all of the obsolete unit testing code from the V1 sandbox.
> 
> Bug: 902597
> Change-Id: I426e3b815e0bf23036815750aab350adbb22e068
> Reviewed-on: https://chromium-review.googlesource.com/c/1327527
> Commit-Queue: Greg Kerr <kerrnel@chromium.org>
> Reviewed-by: Robert Sesek <rsesek@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#612416}

TBR=kerrnel@chromium.org,rsesek@chromium.org

Change-Id: I4731044d228c3b21778334b1ef2693baa1818239
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 902597
Reviewed-on: https://chromium-review.googlesource.com/c/1356165
Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612512}
2018-11-30 01:58:11 +00:00
Greg Kerr
1d979043f0 macOS Sandbox: Port fontloading test to V2 sandbox.
This removes all of the obsolete unit testing code from the V1 sandbox.

Bug: 902597
Change-Id: I426e3b815e0bf23036815750aab350adbb22e068
Reviewed-on: https://chromium-review.googlesource.com/c/1327527
Commit-Queue: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612416}
2018-11-29 22:53:06 +00:00
Greg Kerr
5ffaaea774 macOS Sandbox: Port SSL init test to V2.
Bug: 902597
Change-Id: I3e422c88d774705a1c67682d0fdb1b18e3568170
Reviewed-on: https://chromium-review.googlesource.com/c/1327426
Commit-Queue: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611441}
2018-11-28 00:13:29 +00:00
Greg Kerr
b25043dd7b macOS Sandbox: Add unit test for pasteboard in sandboxed processes.
This converts the V1 unit test, checking pasteboard access in sandboxed
processes, to the V2 sandbox.

Bug: 902597
Change-Id: Id11e2c597a55f9e66f45d1edf6b7c7bcb8396f57
Reviewed-on: https://chromium-review.googlesource.com/c/1327545
Commit-Queue: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611202}
2018-11-27 18:25:46 +00:00
Robert Sesek
1e15d707ab Fix SandboxMacTest.RendererCannotWriteHomeDir on macOS 10.10
Tbr: kerrnel@chromium.org
Bug: 902597
Change-Id: I2b18b5b95d3a769e1185559afdcc81d25da5551f
Reviewed-on: https://chromium-review.googlesource.com/c/1331227
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607132}
2018-11-12 02:55:40 +00:00
Greg Kerr
65f314fbe5 macOS Sandbox: Add unit test that renderer cannot write to homedir.
This adds a unit test that the V2 renderer sandbox profile cannot write
to the homedir.

Bug: 902597
Change-Id: I6b8c850bdafcb377070e22ed2a1459bcd631b69c
Reviewed-on: https://chromium-review.googlesource.com/c/1321862
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Greg Kerr <kerrnel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606956}
2018-11-09 20:35:25 +00:00