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

Unified Diff: chrome/app/chrome_main_delegate.cc

Issue 2199313002: [Mac] Only enable the CFBundleBlocker in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_main_delegate.cc
diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
index 7cf7a916cbb99ac662aa730bf933dd193c62d9a5..53979037813b3b8e732a2012008885a205e4b553 100644
--- a/chrome/app/chrome_main_delegate.cc
+++ b/chrome/app/chrome_main_delegate.cc
@@ -490,7 +490,11 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exit_code) {
ObjcEvilDoers::ZombieEnable(true, is_browser ? 10000 : 1000);
SetUpBundleOverrides();
- chrome::common::mac::EnableCFBundleBlocker();
+
+ // Only enable the CFBundleBlocker in the browser. In child processes,
+ // the sandbox will block access to loadable bundle locations.
+ if (is_browser)
+ chrome::common::mac::EnableCFBundleBlocker();
#endif
Profiling::ProcessStarted();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698