| Index: content/browser/BUILD.gn
|
| diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
|
| index 540a3b552e6c94fa4dbcc0fcbdc2b82755205611..64ccb858bafcbfe2df58ebbfe928931d0ce83768 100644
|
| --- a/content/browser/BUILD.gn
|
| +++ b/content/browser/BUILD.gn
|
| @@ -57,7 +57,6 @@
|
| "//crypto",
|
| "//device/battery",
|
| "//device/bluetooth",
|
| - "//device/power_save_blocker",
|
| "//device/vibration",
|
| "//gin",
|
| "//google_apis",
|
| @@ -292,7 +291,20 @@
|
|
|
| if (use_x11) {
|
| configs += [ "//build/config/linux:x11" ]
|
| + if (!is_chromeos) {
|
| + configs += [ "//build/config/linux:xscrnsaver" ]
|
| + }
|
| deps += [ "//ui/gfx/x" ]
|
| + }
|
| +
|
| + # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated
|
| + # given the interaction between os_chromeos and the feature flags for X11 and
|
| + # ozone, so do it all in one spot.
|
| + if (is_chromeos || !use_ozone) {
|
| + sources -= [ "power_save_blocker_ozone.cc" ]
|
| + }
|
| + if (is_chromeos || !use_x11) {
|
| + sources -= [ "power_save_blocker_x11.cc" ]
|
| }
|
|
|
| # Dealing with *wifi_data_provider_*.cc is also a bit complicated given
|
|
|