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

Unified Diff: chrome/common/chrome_paths.cc

Issue 1989893004: media: Use platform specific folders for CDMs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: specify both paths in chrome.release Created 4 years, 7 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/chrome_paths.cc
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index f4e119db21536639646f55aaf0b4db586721d280..accbe55adfe823f68500e13bc11a36de8af5c2fb 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -16,6 +16,7 @@
#include "build/build_config.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths_internal.h"
+#include "media/cdm/cdm_paths.h"
#if defined(OS_ANDROID)
#include "base/android/path_utils.h"
@@ -368,7 +369,7 @@ bool PathProvider(int key, base::FilePath* result) {
case chrome::DIR_COMPONENT_WIDEVINE_CDM:
if (!PathService::Get(chrome::DIR_USER_DATA, &cur))
return false;
- cur = cur.Append(FILE_PATH_LITERAL("WidevineCDM"));
+ cur = cur.AppendASCII(kWidevineCdmBaseDirectory);
break;
#endif // defined(WIDEVINE_CDM_IS_COMPONENT)
// TODO(xhwang): FILE_WIDEVINE_CDM_ADAPTER has different meanings.
@@ -377,6 +378,8 @@ bool PathProvider(int key, base::FilePath* result) {
case chrome::FILE_WIDEVINE_CDM_ADAPTER:
if (!GetComponentDirectory(&cur))
return false;
+ cur = cur.Append(
+ media::GetPlatformSpecificDirectory(kWidevineCdmBaseDirectory));
cur = cur.AppendASCII(kWidevineCdmAdapterFileName);
break;
#endif // defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS)

Powered by Google App Engine
This is Rietveld 408576698