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

Unified Diff: apps/shell/browser/shell_desktop_controller.cc

Issue 214693010: Remove USE_X11==1 check when including OutputConfigurator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 9 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
« no previous file with comments | « apps/shell/browser/shell_desktop_controller.h ('k') | ash/ash.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/browser/shell_desktop_controller.cc
diff --git a/apps/shell/browser/shell_desktop_controller.cc b/apps/shell/browser/shell_desktop_controller.cc
index 37ed8e38753d3132fd303dcc62d4541ce6780888..9725c5187faa7c3bc03ff53d72fdbc7eb864d5db 100644
--- a/apps/shell/browser/shell_desktop_controller.cc
+++ b/apps/shell/browser/shell_desktop_controller.cc
@@ -15,7 +15,7 @@
#include "ui/views/widget/widget.h"
#include "ui/wm/test/wm_test_helper.h"
-#if defined(OS_CHROMEOS) && defined(USE_X11)
+#if defined(OS_CHROMEOS)
#include "ui/display/chromeos/display_mode.h"
#include "ui/display/chromeos/display_snapshot.h"
#endif
@@ -49,7 +49,7 @@ class ShellViewsDelegate : public views::TestViewsDelegate {
} // namespace
ShellDesktopController::ShellDesktopController() {
-#if defined(OS_CHROMEOS) && defined(USE_X11)
+#if defined(OS_CHROMEOS)
output_configurator_.reset(new ui::OutputConfigurator);
output_configurator_->Init(false);
output_configurator_->ForceInitialConfigure(0);
@@ -73,7 +73,7 @@ aura::WindowTreeHost* ShellDesktopController::GetWindowTreeHost() {
return wm_test_helper_->host();
}
-#if defined(OS_CHROMEOS) && defined(USE_X11)
+#if defined(OS_CHROMEOS)
void ShellDesktopController::OnDisplayModeChanged(
const std::vector<ui::OutputConfigurator::DisplayState>& outputs) {
gfx::Size size = GetPrimaryDisplaySize();
@@ -106,7 +106,7 @@ void ShellDesktopController::DestroyRootWindow() {
}
gfx::Size ShellDesktopController::GetPrimaryDisplaySize() {
-#if defined(OS_CHROMEOS) && defined(USE_X11)
+#if defined(OS_CHROMEOS)
const std::vector<ui::OutputConfigurator::DisplayState>& states =
output_configurator_->cached_outputs();
if (states.empty())
« no previous file with comments | « apps/shell/browser/shell_desktop_controller.h ('k') | ash/ash.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698