1
Index: beta.wily/chrome/common/chrome_paths.cc
2
===================================================================
3
--- beta.wily.orig/chrome/common/chrome_paths.cc 2015-07-09 18:04:46.569046175 -0400
4
+++ beta.wily/chrome/common/chrome_paths.cc 2015-07-09 18:04:46.567046203 -0400
6
#if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS)
7
#if defined(WIDEVINE_CDM_IS_COMPONENT)
8
case chrome::DIR_COMPONENT_WIDEVINE_CDM:
9
+ if (base::PathExists(base::FilePath("/opt/google/chrome-unstable/libwidevinecdm.so"))) {
10
+ cur = cur.Append("/opt/google/chrome-unstable/");
13
+ if (base::PathExists(base::FilePath("/opt/google/chrome/libwidevinecdm.so"))) {
14
+ cur = cur.Append("/opt/google/chrome/");
17
if (!PathService::Get(chrome::DIR_USER_DATA, &cur))
19
cur = cur.Append(kWidevineCdmBaseDirectory);
21
// In the component case, this is the source adapter. Otherwise, it is the
22
// actual Pepper module that gets loaded.
23
case chrome::FILE_WIDEVINE_CDM_ADAPTER:
24
+ if (base::PathExists(base::FilePath("/opt/google/chrome-unstable/libwidevinecdmadapter.so"))) {
25
+ cur = cur.AppendASCII("/opt/google/chrome-unstable/libwidevinecdmadapter.so");
28
+ if (base::PathExists(base::FilePath("/opt/google/chrome/libwidevinecdmadapter.so"))) {
29
+ cur = cur.AppendASCII("/opt/google/chrome/libwidevinecdmadapter.so");
32
if (!GetInternalPluginsDirectory(&cur))
34
cur = cur.AppendASCII(kWidevineCdmAdapterFileName);