summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/webui/options/chromeos/display_options_handler.cc')
-rw-r--r--chrome/browser/ui/webui/options/chromeos/display_options_handler.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
index 8f0df81..504cf23 100644
--- a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
@@ -167,8 +167,6 @@ void DisplayOptionsHandler::SendAllDisplayInfo() {
void DisplayOptionsHandler::SendDisplayInfo(
const std::vector<gfx::Display>& displays) {
DisplayManager* display_manager = GetDisplayManager();
- ash::DisplayController* display_controller =
- ash::Shell::GetInstance()->display_controller();
base::FundamentalValue mirroring(display_manager->IsMirrored());
int64 primary_id = ash::Shell::GetScreen()->GetPrimaryDisplay().id();
@@ -247,7 +245,7 @@ void DisplayOptionsHandler::SendDisplayInfo(
scoped_ptr<base::Value> offset_value(base::Value::CreateNullValue());
if (display_manager->GetNumDisplays() > 1) {
const ash::DisplayLayout layout =
- display_controller->GetCurrentDisplayLayout();
+ display_manager->GetCurrentDisplayLayout();
layout_value.reset(new base::FundamentalValue(layout.position));
offset_value.reset(new base::FundamentalValue(layout.offset));
}