Add CHECK() to verify that the resources directory is an absolute path (issue #1673)

This commit is contained in:
Marshall Greenblatt 2015-07-29 12:13:14 -04:00
parent 322d697169
commit 84c7b0ad8a
1 changed files with 1 additions and 0 deletions

View File

@ -634,6 +634,7 @@ void CefMainDelegate::InitializeResourceBundle() {
if (!content_client_.pack_loading_disabled()) {
if (!resources_dir.empty()) {
CHECK(resources_dir.IsAbsolute());
cef_pak_file = resources_dir.Append(FILE_PATH_LITERAL("cef.pak"));
cef_100_percent_pak_file =
resources_dir.Append(FILE_PATH_LITERAL("cef_100_percent.pak"));