Commit 3cdaa931 authored by Glen Robertson's avatar Glen Robertson Committed by Commit Bot

Require `enable_media_drm_storage` for rules in components/cdm/browser/.

These targets fail to build if depended upon without
`enable_media_drm_storage`, so prevent that from being possible.
Split out from crrev.com/c/2383400

Bug: 898837
Change-Id: I7e0b94d81d2a722d93e41188812d532533a0255c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2407420
Auto-Submit: Glen Robertson <glenrob@chromium.org>
Commit-Queue: John Rummell <jrummell@chromium.org>
Reviewed-by: default avatarJohn Rummell <jrummell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#806710}
parent e28fd857
...@@ -2,47 +2,51 @@ ...@@ -2,47 +2,51 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
source_set("browser") { import("//media/media_options.gni")
sources = [
"media_drm_storage_impl.cc",
"media_drm_storage_impl.h",
]
public_deps = [ if (enable_media_drm_storage) {
"//base", source_set("browser") {
"//base/util/values:values_util", sources = [
"//content/public/browser", "media_drm_storage_impl.cc",
"//media/mojo/mojom", "media_drm_storage_impl.h",
"//url", ]
]
deps = [ public_deps = [
"//components/cdm/common", "//base",
"//components/prefs", "//base/util/values:values_util",
"//components/user_prefs", "//content/public/browser",
"//content/public/common", "//media/mojo/mojom",
"//ipc", "//url",
"//media", ]
]
if (is_android) { deps = [
sources += [ "//components/cdm/common",
"cdm_message_filter_android.cc", "//components/prefs",
"cdm_message_filter_android.h", "//components/user_prefs",
"//content/public/common",
"//ipc",
"//media",
] ]
deps += [ "//third_party/widevine/cdm:headers" ]
if (is_android) {
sources += [
"cdm_message_filter_android.cc",
"cdm_message_filter_android.h",
]
deps += [ "//third_party/widevine/cdm:headers" ]
}
} }
}
source_set("unit_tests") { source_set("unit_tests") {
testonly = true testonly = true
sources = [ "media_drm_storage_impl_unittest.cc" ] sources = [ "media_drm_storage_impl_unittest.cc" ]
deps = [ deps = [
":browser", ":browser",
"//base/test:test_support", "//base/test:test_support",
"//components/prefs:test_support", "//components/prefs:test_support",
"//content/test:test_support", "//content/test:test_support",
"//media/mojo/services", "//media/mojo/services",
"//testing/gtest", "//testing/gtest",
] ]
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment