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) |