1
--- a/chrome/common/chrome_paths.cc
2
+++ b/chrome/common/chrome_paths.cc
3
@@ -392,6 +392,10 @@ bool PathProvider(int key, base::FilePat
4
#if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS)
5
#if defined(WIDEVINE_CDM_IS_COMPONENT)
6
case chrome::DIR_COMPONENT_WIDEVINE_CDM:
7
+ if (base::PathExists("/opt/google/chrome/libwidevinecdm.so")) {
8
+ cur = cur.Append("/opt/google/chrome/");
11
if (!PathService::Get(chrome::DIR_USER_DATA, &cur))
13
cur = cur.Append(kWidevineCdmBaseDirectory);
14
@@ -401,6 +405,10 @@ bool PathProvider(int key, base::FilePat
15
// In the component case, this is the source adapter. Otherwise, it is the
16
// actual Pepper module that gets loaded.
17
case chrome::FILE_WIDEVINE_CDM_ADAPTER:
18
+ if (base::PathExists("/opt/google/chrome/libwidevinecdmadapter.so")) {
19
+ cur = cur.AppendASCII("/opt/google/chrome/libwidevinecdmadapter.so");
22
if (!GetInternalPluginsDirectory(&cur))
24
cur = cur.AppendASCII(kWidevineCdmAdapterFileName);