|
| 1 | +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | +From: deepak1556 <hop2deep@gmail.com> |
| 3 | +Date: Tue, 8 Oct 2019 15:40:50 +0000 |
| 4 | +Subject: build: fix when building with enable_plugins=false |
| 5 | + |
| 6 | +Bug: none |
| 7 | +Change-Id: If878b3a7f5bb051c6e99c617418475c12754ae90 |
| 8 | +Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1845624 |
| 9 | +Reviewed-by: Robert Sesek <rsesek@chromium.org> |
| 10 | +Commit-Queue: Robert Sesek <rsesek@chromium.org> |
| 11 | +Cr-Commit-Position: refs/heads/master@{#703739} |
| 12 | + |
| 13 | +diff --git a/AUTHORS b/AUTHORS |
| 14 | +index 32fc92e6113c6324cc0b09b7a7ff309e2c89ddda..ae51b1d483564c96cb98b603280ac510f90c36c1 100644 |
| 15 | +--- a/AUTHORS |
| 16 | ++++ b/AUTHORS |
| 17 | +@@ -219,6 +219,7 @@ Debashish Samantaray <d.samantaray@samsung.com> |
| 18 | + Debug Wang <debugwang@tencent.com> |
| 19 | + Deepak Dilip Borade <deepak.db@samsung.com> |
| 20 | + Deepak Mittal <deepak.m1@samsung.com> |
| 21 | ++Deepak Mohan <hop2deep@gmail.com> |
| 22 | + Deepak Sharma <deepak.sharma@amd.com> |
| 23 | + Deepak Singla <deepak.s@samsung.com> |
| 24 | + Deokjin Kim <deokjin81.kim@samsung.com> |
| 25 | +diff --git a/content/browser/sandbox_parameters_mac.mm b/content/browser/sandbox_parameters_mac.mm |
| 26 | +index b4d539bab49d468e0d2bdade76aad3dba0facfc4..73905a6eac811f9bff04e1b0ceb47b3ea326ee62 100644 |
| 27 | +--- a/content/browser/sandbox_parameters_mac.mm |
| 28 | ++++ b/content/browser/sandbox_parameters_mac.mm |
| 29 | +@@ -21,12 +21,16 @@ |
| 30 | + #include "content/public/browser/plugin_service.h" |
| 31 | + #include "content/public/common/content_client.h" |
| 32 | + #include "content/public/common/content_switches.h" |
| 33 | +-#include "content/public/common/pepper_plugin_info.h" |
| 34 | ++#include "ppapi/buildflags/buildflags.h" |
| 35 | + #include "sandbox/mac/seatbelt_exec.h" |
| 36 | + #include "services/service_manager/sandbox/mac/sandbox_mac.h" |
| 37 | + #include "services/service_manager/sandbox/sandbox_type.h" |
| 38 | + #include "services/service_manager/sandbox/switches.h" |
| 39 | + |
| 40 | ++#if BUILDFLAG(ENABLE_PLUGINS) |
| 41 | ++#include "content/public/common/pepper_plugin_info.h" |
| 42 | ++#endif |
| 43 | ++ |
| 44 | + namespace content { |
| 45 | + |
| 46 | + namespace { |
| 47 | +@@ -125,6 +129,7 @@ void SetupNetworkSandboxParameters(sandbox::SeatbeltExecClient* client) { |
| 48 | + } |
| 49 | + } |
| 50 | + |
| 51 | ++#if BUILDFLAG(ENABLE_PLUGINS) |
| 52 | + void SetupPPAPISandboxParameters(sandbox::SeatbeltExecClient* client) { |
| 53 | + SetupCommonSandboxParameters(client); |
| 54 | + |
| 55 | +@@ -149,6 +154,7 @@ void SetupPPAPISandboxParameters(sandbox::SeatbeltExecClient* client) { |
| 56 | + // to n+1 more than the plugins added. |
| 57 | + CHECK(index <= 5); |
| 58 | + } |
| 59 | ++#endif |
| 60 | + |
| 61 | + void SetupCDMSandboxParameters(sandbox::SeatbeltExecClient* client) { |
| 62 | + SetupCommonSandboxParameters(client); |
| 63 | +@@ -186,9 +192,11 @@ void SetupSandboxParameters(service_manager::SandboxType sandbox_type, |
| 64 | + case service_manager::SANDBOX_TYPE_NETWORK: |
| 65 | + SetupNetworkSandboxParameters(client); |
| 66 | + break; |
| 67 | ++#if BUILDFLAG(ENABLE_PLUGINS) |
| 68 | + case service_manager::SANDBOX_TYPE_PPAPI: |
| 69 | + SetupPPAPISandboxParameters(client); |
| 70 | + break; |
| 71 | ++#endif |
| 72 | + case service_manager::SANDBOX_TYPE_PROFILING: |
| 73 | + case service_manager::SANDBOX_TYPE_UTILITY: |
| 74 | + SetupUtilitySandboxParameters(client, command_line); |
0 commit comments