Index: ui/views_content_client/views_content_main_delegate.cc |
diff --git a/ui/views_content_client/views_content_main_delegate.cc b/ui/views_content_client/views_content_main_delegate.cc |
index a97c812472e3b52955b97164c08cbb69756c7361..1fb3a6913e1c4eebe1b2ebe76ca609b8f237714c 100644 |
--- a/ui/views_content_client/views_content_main_delegate.cc |
+++ b/ui/views_content_client/views_content_main_delegate.cc |
@@ -61,6 +61,13 @@ void ViewsContentMainDelegate::PreSandboxStartup() { |
base::FilePath ui_test_pak_path; |
DCHECK(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path)); |
ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path); |
+ |
+ // Load content resources to provide, e.g., sandbox configuration data on Mac. |
+ base::FilePath content_resources_pak_path; |
+ PathService::Get(base::DIR_MODULE, &content_resources_pak_path); |
+ ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath( |
+ content_resources_pak_path.AppendASCII("content_resources.pak"), |
+ ui::SCALE_FACTOR_100P); |
} |
content::ContentBrowserClient* |