Chromium Code Reviews| Index: chrome/browser/ui/webui/options2/chromeos/display_options_handler.cc |
| diff --git a/chrome/browser/ui/webui/options2/chromeos/display_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/display_options_handler.cc |
| index 46656e00c5a1901ef692a88a4bd1480980222175..3a38278e825c094bf1862ab3b7dd592c05f0ab9f 100644 |
| --- a/chrome/browser/ui/webui/options2/chromeos/display_options_handler.cc |
| +++ b/chrome/browser/ui/webui/options2/chromeos/display_options_handler.cc |
| @@ -81,13 +81,10 @@ void DisplayOptionsHandler::OnDisplayRemoved(const gfx::Display& old_display) { |
| } |
| void DisplayOptionsHandler::UpdateDisplaySectionVisibility() { |
| - aura::DisplayManager* display_manager = |
| - aura::Env::GetInstance()->display_manager(); |
| chromeos::State output_state = |
| ash::Shell::GetInstance()->output_configurator()->output_state(); |
| base::FundamentalValue show_options( |
| DisplayController::IsExtendedDesktopEnabled() && |
| - display_manager->GetNumDisplays() > 1 && |
| output_state != chromeos::STATE_INVALID && |
| output_state != chromeos::STATE_HEADLESS && |
| output_state != chromeos::STATE_SINGLE); |
|
oshima
2012/07/25 07:53:41
I think it's easier to read/follow if you list val
Jun Mukai
2012/07/25 08:14:43
Are there no chances to add a new state even when
oshima
2012/07/25 13:03:37
Existing code can break when state enum changes to
Jun Mukai
2012/07/25 14:44:42
Can we do that in another CL? That doesn't sound
|