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

Unified Diff: extensions/browser/api/system_display/system_display_api.cc

Issue 2802603005: MD Settings: Display: Add unified desktop control and modify api (Closed)
Patch Set: Fix closure and tests Created 3 years, 8 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
Index: extensions/browser/api/system_display/system_display_api.cc
diff --git a/extensions/browser/api/system_display/system_display_api.cc b/extensions/browser/api/system_display/system_display_api.cc
index c6149a334a282d9a50b8653d3e5ba02edae09d7b..66198acabcb305dbdd68c3739c31858c22635a4e 100644
--- a/extensions/browser/api/system_display/system_display_api.cc
+++ b/extensions/browser/api/system_display/system_display_api.cc
@@ -179,8 +179,12 @@ bool SystemDisplayFunction::ShouldRestrictToKioskAndWebUI() {
}
ExtensionFunction::ResponseAction SystemDisplayGetInfoFunction::Run() {
+ std::unique_ptr<display::GetInfo::Params> params(
+ display::GetInfo::Params::Create(*args_));
+ bool single_unified = params->flags && params->flags->single_unified &&
+ *params->flags->single_unified;
DisplayInfoProvider::DisplayUnitInfoList all_displays_info =
- DisplayInfoProvider::Get()->GetAllDisplaysInfo();
+ DisplayInfoProvider::Get()->GetAllDisplaysInfo(single_unified);
return RespondNow(
ArgumentList(display::GetInfo::Results::Create(all_displays_info)));
}
« no previous file with comments | « extensions/browser/api/system_display/display_info_provider.cc ('k') | extensions/common/api/system_display.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698