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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 8589001: Load mac sandbox definitions from resources instead of the bundle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: different approach Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index 65b004b3ede042d7c5f9f3ceb30305b025eaa03f..21b145b2dde3073e9466af511398d671f28ba2a3 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -21,6 +21,7 @@
#include "chrome/common/render_messages.h"
#include "chrome/default_plugin/plugin_main.h"
#include "content/public/common/pepper_plugin_info.h"
+#include "grit/common_resources.h"
#include "remoting/client/plugin/pepper_entrypoints.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -30,6 +31,8 @@
#if defined(OS_WIN)
#include "sandbox/src/sandbox.h"
+#elif defined(OS_MACOSX)
+#include "chrome/common/chrome_sandbox_process_type_mac.h"
#endif
namespace {
@@ -403,4 +406,13 @@ bool ChromeContentClient::SandboxPlugin(CommandLine* command_line,
}
#endif
+#if defined(OS_MACOSX)
+int ChromeContentClient::GetSandboxPolicyForSandboxType(
+ int sandbox_type) const {
+ if (sandbox_type == CHROME_SANDBOX_TYPE_NACL_LOADER)
+ return IDR_NACL_SANDBOX_POLICY;
+ return -1;
+}
+#endif
+
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698