Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Unified Diff: media/cdm/external_clear_key_test_helper.cc

Issue 1978123002: Revert of media: Move widevine CDM targets to WidevineCdm folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/tools/build/win/FILES.cfg ('k') | media/cdm/ppapi/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/external_clear_key_test_helper.cc
diff --git a/media/cdm/external_clear_key_test_helper.cc b/media/cdm/external_clear_key_test_helper.cc
index ebdcf7e0435941e11a68c5635f6d17f4607d1d29..1a2a15ea2ea7a93ad2cc5223e8e18866c8a7e603 100644
--- a/media/cdm/external_clear_key_test_helper.cc
+++ b/media/cdm/external_clear_key_test_helper.cc
@@ -18,8 +18,6 @@
// is expanded.
#define STRINGIFY(X) #X
#define MAKE_STRING(X) STRINGIFY(X)
-
-const char kClearKeyCdmBaseDirectory[] = "ClearKeyCdm";
// File name of the External ClearKey CDM on different platforms.
const base::FilePath::CharType kExternalClearKeyCdmFileName[] =
@@ -42,10 +40,10 @@
void ExternalClearKeyTestHelper::LoadLibrary() {
// Determine the location of the CDM. It is expected to be in the same
// directory as the current module.
- base::FilePath library_dir;
- ASSERT_TRUE(PathService::Get(base::DIR_MODULE, &library_dir));
- library_dir = library_dir.AppendASCII(kClearKeyCdmBaseDirectory);
- library_path_ = library_dir.Append(kExternalClearKeyCdmFileName);
+ base::FilePath current_module_dir;
+ ASSERT_TRUE(PathService::Get(base::DIR_MODULE, &current_module_dir));
+ library_path_ =
+ current_module_dir.Append(base::FilePath(kExternalClearKeyCdmFileName));
ASSERT_TRUE(base::PathExists(library_path_)) << library_path_.value();
// Now load the CDM library.
« no previous file with comments | « chrome/tools/build/win/FILES.cfg ('k') | media/cdm/ppapi/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698