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

Unified Diff: chrome/common/media/cdm_host_file_path.cc

Issue 2776613002: media: Move Widevine signature of Framework into a bundle (Closed)
Patch Set: media: Move Framework signature into a bundle 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
Index: chrome/common/media/cdm_host_file_path.cc
diff --git a/chrome/common/media/cdm_host_file_path.cc b/chrome/common/media/cdm_host_file_path.cc
index 5536ab7401e02417aae2cb50dba0c0aaaac103c1..317ea8faa3989a74f4f6e075df18cd83f856d402 100644
--- a/chrome/common/media/cdm_host_file_path.cc
+++ b/chrome/common/media/cdm_host_file_path.cc
@@ -81,13 +81,17 @@ void AddCdmHostFilePaths(
#elif defined(OS_MACOSX)
- // Framework signature is next to the framework directory, not next to
- // the actual framework executable.
base::FilePath chrome_framework_path =
base::mac::FrameworkBundlePath().Append(chrome::kFrameworkExecutableName);
- base::FilePath chrome_framework_sig_path =
- GetSigFilePath(base::mac::FrameworkBundlePath().DirName().Append(
- chrome::kFrameworkExecutableName));
+
+ // Framework signature is in the "Widevine Resources.bundle" next to the
+ // framework directory, not next to the actual framework executable.
+ static const base::FilePath::CharType kWidevineResourcesPath[] =
+ FILE_PATH_LITERAL("Widevine Resources.bundle/Contents/Resources");
+ base::FilePath widevine_signature_path =
+ base::mac::FrameworkBundlePath().DirName().Append(kWidevineResourcesPath);
+ base::FilePath chrome_framework_sig_path = GetSigFilePath(
+ widevine_signature_path.Append(chrome::kFrameworkExecutableName));
DVLOG(2) << __func__
<< ": chrome_framework_path=" << chrome_framework_path.value()

Powered by Google App Engine
This is Rietveld 408576698