| Index: chrome/browser/component_updater/widevine_cdm_component_installer.cc
|
| diff --git a/chrome/browser/component_updater/widevine_cdm_component_installer.cc b/chrome/browser/component_updater/widevine_cdm_component_installer.cc
|
| index fe69eda67b7d8d150fddac32f5d665212260df7c..96a23457cbb72e3301ad3634c2c2c5b6f707eac0 100644
|
| --- a/chrome/browser/component_updater/widevine_cdm_component_installer.cc
|
| +++ b/chrome/browser/component_updater/widevine_cdm_component_installer.cc
|
| @@ -221,18 +221,18 @@ bool WidevineCdmComponentInstaller::Install(
|
| if (current_version_.CompareTo(version) > 0)
|
| return false;
|
|
|
| - if (!file_util::PathExists(unpack_path.AppendASCII(kWidevineCdmFileName)))
|
| + if (!base::PathExists(unpack_path.AppendASCII(kWidevineCdmFileName)))
|
| return false;
|
|
|
| base::FilePath adapter_source_path;
|
| PathService::Get(chrome::FILE_WIDEVINE_CDM_ADAPTER, &adapter_source_path);
|
| - if (!file_util::PathExists(adapter_source_path))
|
| + if (!base::PathExists(adapter_source_path))
|
| return false;
|
|
|
| // Passed the basic tests. Time to install it.
|
| base::FilePath install_path =
|
| GetWidevineCdmBaseDirectory().AppendASCII(version.GetString());
|
| - if (file_util::PathExists(install_path))
|
| + if (base::PathExists(install_path))
|
| return false;
|
| if (!base::Move(unpack_path, install_path))
|
| return false;
|
| @@ -281,7 +281,7 @@ void FinishWidevineCdmUpdateRegistration(ComponentUpdateService* cus,
|
| void StartWidevineCdmUpdateRegistration(ComponentUpdateService* cus) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
|
| base::FilePath base_dir = GetWidevineCdmBaseDirectory();
|
| - if (!file_util::PathExists(base_dir) &&
|
| + if (!base::PathExists(base_dir) &&
|
| !file_util::CreateDirectory(base_dir)) {
|
| NOTREACHED() << "Could not create Widevine CDM directory.";
|
| return;
|
| @@ -296,8 +296,8 @@ void StartWidevineCdmUpdateRegistration(ComponentUpdateService* cus) {
|
| latest_dir.AppendASCII(kWidevineCdmAdapterFileName);
|
| base::FilePath cdm_path = latest_dir.AppendASCII(kWidevineCdmFileName);
|
|
|
| - if (file_util::PathExists(adapter_path) &&
|
| - file_util::PathExists(cdm_path)) {
|
| + if (base::PathExists(adapter_path) &&
|
| + base::PathExists(cdm_path)) {
|
| BrowserThread::PostTask(
|
| BrowserThread::UI, FROM_HERE,
|
| base::Bind(&RegisterWidevineCdmWithChrome, adapter_path, version));
|
|
|