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

Unified Diff: headless/lib/headless_content_main_delegate.cc

Issue 2753033004: Fix resources path for Mac non component build (Closed)
Patch Set: fixed for non component builds Created 3 years, 9 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: headless/lib/headless_content_main_delegate.cc
diff --git a/headless/lib/headless_content_main_delegate.cc b/headless/lib/headless_content_main_delegate.cc
index 739e95f483201083f8c1cdb01fdf509336627629..ece762b8cd52ecfe71b309b80defd6fd99cd282a 100644
--- a/headless/lib/headless_content_main_delegate.cc
+++ b/headless/lib/headless_content_main_delegate.cc
@@ -250,6 +250,9 @@ void HeadlessContentMainDelegate::InitializeResourceBundle() {
kHeadlessResourcePak.length),
ui::SCALE_FACTOR_NONE);
#else
+#if defined(OS_MACOSX) && !defined(COMPONENT_BUILD)
+ dir_module = dir_module.Append(FILE_PATH_LITERAL("resources/"));
Sami 2017/03/17 11:12:01 Should this be capitalized? The common pattern I s
dvallet 2017/03/17 19:46:11 You're right, funny I just realized that HFS+ is c
+#endif
// Try loading the headless library pak file first. If it doesn't exist (i.e.,
// when we're running with the --headless switch), fall back to the browser's
// resource pak.
« 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