| Index: components/storage_monitor/BUILD.gn
|
| diff --git a/components/storage_monitor/BUILD.gn b/components/storage_monitor/BUILD.gn
|
| index 1c008c60c2223dd1e85db7656f86e05f9f758085..ffe717e55941dae465142669c61f5dad83b2f886 100644
|
| --- a/components/storage_monitor/BUILD.gn
|
| +++ b/components/storage_monitor/BUILD.gn
|
| @@ -56,7 +56,7 @@ static_library("storage_monitor") {
|
| ]
|
| }
|
|
|
| - if (is_linux) {
|
| + if (is_linux && use_dbus) {
|
| deps += [
|
| "//device/media_transfer_protocol",
|
| "//device/media_transfer_protocol:mtp_file_entry_proto",
|
| @@ -111,7 +111,7 @@ static_library("test_support") {
|
| "//content/public/browser",
|
| ]
|
|
|
| - if (is_linux) {
|
| + if (is_linux && use_dbus) {
|
| deps = [
|
| "//device/media_transfer_protocol",
|
| "//device/media_transfer_protocol:mtp_file_entry_proto",
|
| @@ -146,7 +146,7 @@ source_set("unit_tests") {
|
| "//testing/gtest",
|
| ]
|
|
|
| - if (is_linux) {
|
| + if (is_linux && use_dbus) {
|
| deps += [ "//device/media_transfer_protocol" ]
|
| if (!is_chromeos) {
|
| sources += [ "storage_monitor_linux_unittest.cc" ]
|
|
|