diff options
-rw-r--r-- | chrome/browser/component_updater/widevine_cdm_component_installer.cc | 8 | ||||
-rw-r--r-- | chrome/common/chrome_paths.cc | 2 | ||||
-rw-r--r-- | third_party/widevine/cdm/widevine_cdm_common.h | 16 |
3 files changed, 13 insertions, 13 deletions
diff --git a/chrome/browser/component_updater/widevine_cdm_component_installer.cc b/chrome/browser/component_updater/widevine_cdm_component_installer.cc index f43c28a..000ff86 100644 --- a/chrome/browser/component_updater/widevine_cdm_component_installer.cc +++ b/chrome/browser/component_updater/widevine_cdm_component_installer.cc @@ -217,7 +217,7 @@ bool WidevineCdmComponentInstaller::Install( if (current_version_.CompareTo(version) > 0) return false; - if (!file_util::PathExists(unpack_path.Append(kWidevineCdmFileName))) + if (!file_util::PathExists(unpack_path.AppendASCII(kWidevineCdmFileName))) return false; base::FilePath adapter_source_path; @@ -234,7 +234,7 @@ bool WidevineCdmComponentInstaller::Install( return false; base::FilePath adapter_install_path = - install_path.Append(kWidevineCdmAdapterFileName); + install_path.AppendASCII(kWidevineCdmAdapterFileName); if (!file_util::CopyFile(adapter_source_path, adapter_install_path)) return false; @@ -270,8 +270,8 @@ void StartWidevineCdmUpdateRegistration(ComponentUpdateService* cus) { base::Version version(kNullVersion); std::vector<base::FilePath> older_dirs; if (GetWidevineCdmDirectory(&path, &version, &older_dirs)) { - if (file_util::PathExists(path.Append(kWidevineCdmAdapterFileName)) && - file_util::PathExists(path.Append(kWidevineCdmFileName))) { + if (file_util::PathExists(path.AppendASCII(kWidevineCdmAdapterFileName)) && + file_util::PathExists(path.AppendASCII(kWidevineCdmFileName))) { BrowserThread::PostTask( BrowserThread::UI, FROM_HERE, base::Bind(&RegisterWidevineCdmWithChrome, path, version)); diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc index 641baf2..a88ca9f 100644 --- a/chrome/common/chrome_paths.cc +++ b/chrome/common/chrome_paths.cc @@ -368,7 +368,7 @@ bool PathProvider(int key, base::FilePath* result) { case chrome::FILE_WIDEVINE_CDM_ADAPTER: if (!GetInternalPluginsDirectory(&cur)) return false; - cur = cur.Append(kWidevineCdmAdapterFileName); + cur = cur.AppendASCII(kWidevineCdmAdapterFileName); break; #endif // defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS) case chrome::FILE_RESOURCES_PACK: diff --git a/third_party/widevine/cdm/widevine_cdm_common.h b/third_party/widevine/cdm/widevine_cdm_common.h index 144aacb..ec68901 100644 --- a/third_party/widevine/cdm/widevine_cdm_common.h +++ b/third_party/widevine/cdm/widevine_cdm_common.h @@ -26,24 +26,24 @@ const char kWidevineCdmPluginMimeTypeDescription[] = #endif // File name of the CDM on different platforms. -const base::FilePath::CharType kWidevineCdmFileName[] = +const char kWidevineCdmFileName[] = #if defined(OS_MACOSX) - FILE_PATH_LITERAL("widevinecdm.dylib"); + "widevinecdm.dylib"; #elif defined(OS_WIN) - FILE_PATH_LITERAL("widevinecdm.dll"); + "widevinecdm.dll"; #else // OS_LINUX, etc. - FILE_PATH_LITERAL("libwidevinecdm.so"); + "libwidevinecdm.so"; #endif #if defined(ENABLE_PEPPER_CDMS) // File name of the adapter on different platforms. -const base::FilePath::CharType kWidevineCdmAdapterFileName[] = +const char kWidevineCdmAdapterFileName[] = #if defined(OS_MACOSX) - FILE_PATH_LITERAL("widevinecdmadapter.plugin"); + "widevinecdmadapter.plugin"; #elif defined(OS_WIN) - FILE_PATH_LITERAL("widevinecdmadapter.dll"); + "widevinecdmadapter.dll"; #else // OS_LINUX, etc. - FILE_PATH_LITERAL("libwidevinecdmadapter.so"); + "libwidevinecdmadapter.so"; #endif #endif // defined(ENABLE_PEPPER_CDMS) |