| Index: ui/display/manager/chromeos/display_configurator.cc
|
| diff --git a/ui/display/manager/chromeos/display_configurator.cc b/ui/display/manager/chromeos/display_configurator.cc
|
| index d718eb8f02b969562b4f8194f5cbd649fa4666c6..242c29bc0224bd70525a3872dbd31e6ee6c9e3bc 100644
|
| --- a/ui/display/manager/chromeos/display_configurator.cc
|
| +++ b/ui/display/manager/chromeos/display_configurator.cc
|
| @@ -490,7 +490,7 @@ DisplayConfigurator::~DisplayConfigurator() {
|
| CallAndClearQueuedCallbacks(false);
|
|
|
| while (!query_protection_callbacks_.empty()) {
|
| - query_protection_callbacks_.front().Run(QueryProtectionResponse());
|
| + query_protection_callbacks_.front().Run(false, 0, 0);
|
| query_protection_callbacks_.pop();
|
| }
|
|
|
| @@ -693,13 +693,13 @@ void DisplayConfigurator::QueryContentProtectionStatus(
|
| for (const DisplaySnapshot* display : cached_displays_) {
|
| if (display->display_id() == display_id &&
|
| !IsPhysicalDisplayType(display->type())) {
|
| - callback.Run(QueryProtectionResponse());
|
| + callback.Run(false, 0, 0);
|
| return;
|
| }
|
| }
|
|
|
| if (!configure_display_ || display_externally_controlled_) {
|
| - callback.Run(QueryProtectionResponse());
|
| + callback.Run(false, 0, 0);
|
| return;
|
| }
|
|
|
| @@ -718,17 +718,17 @@ void DisplayConfigurator::OnContentProtectionQueried(
|
| ContentProtectionClientId client_id,
|
| int64_t display_id,
|
| QueryContentProtectionTask::Response task_response) {
|
| - QueryProtectionResponse response;
|
| - response.success = task_response.success;
|
| - response.link_mask = task_response.link_mask;
|
| + bool success = task_response.success;
|
| + uint32_t link_mask = task_response.link_mask;
|
| + uint32_t protection_mask = 0;
|
|
|
| // Don't reveal protections requested by other clients.
|
| ProtectionRequests::iterator it = client_protection_requests_.find(client_id);
|
| - if (response.success && it != client_protection_requests_.end()) {
|
| + if (success && it != client_protection_requests_.end()) {
|
| uint32_t requested_mask = 0;
|
| if (it->second.find(display_id) != it->second.end())
|
| requested_mask = it->second[display_id];
|
| - response.protection_mask =
|
| + protection_mask =
|
| task_response.enabled & ~task_response.unfulfilled & requested_mask;
|
| }
|
|
|
| @@ -738,7 +738,7 @@ void DisplayConfigurator::OnContentProtectionQueried(
|
| DCHECK(!query_protection_callbacks_.empty());
|
| QueryProtectionCallback callback = query_protection_callbacks_.front();
|
| query_protection_callbacks_.pop();
|
| - callback.Run(response);
|
| + callback.Run(success, link_mask, protection_mask);
|
|
|
| if (!content_protection_tasks_.empty())
|
| content_protection_tasks_.front().Run();
|
|
|