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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/display_options_handler.cc

Issue 2355063002: Separate ash::test::DisplayManagerTestApi from ash (Closed)
Patch Set: review comments Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options/chromeos/display_options_handler.h" 5 #include "chrome/browser/ui/webui/options/chromeos/display_options_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 13
14 #include "ash/common/strings/grit/ash_strings.h" 14 #include "ash/common/strings/grit/ash_strings.h"
15 #include "ash/display/display_configuration_controller.h" 15 #include "ash/display/display_configuration_controller.h"
16 #include "ash/display/display_manager.h" 16 #include "ash/display/display_manager.h"
17 #include "ash/display/resolution_notification_controller.h" 17 #include "ash/display/resolution_notification_controller.h"
18 #include "ash/display/window_tree_host_manager.h" 18 #include "ash/display/window_tree_host_manager.h"
19 #include "ash/screen_util.h" 19 //#include "ash/screen_util.h"
achuithb 2016/10/05 02:38:10 What's this?
rjkroege 2016/10/05 19:07:31 bad rebase. Fixed.
20 #include "ash/shell.h"
20 #include "ash/shell.h" 21 #include "ash/shell.h"
21 #include "base/bind.h" 22 #include "base/bind.h"
22 #include "base/command_line.h" 23 #include "base/command_line.h"
23 #include "base/logging.h" 24 #include "base/logging.h"
24 #include "base/memory/ptr_util.h" 25 #include "base/memory/ptr_util.h"
25 #include "base/strings/string_number_conversions.h" 26 #include "base/strings/string_number_conversions.h"
26 #include "base/strings/stringprintf.h" 27 #include "base/strings/stringprintf.h"
27 #include "base/values.h" 28 #include "base/values.h"
28 #include "chrome/browser/chromeos/display/display_preferences.h" 29 #include "chrome/browser/chromeos/display/display_preferences.h"
29 #include "chrome/browser/ui/ash/ash_util.h" 30 #include "chrome/browser/ui/ash/ash_util.h"
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 bool enable = false; 580 bool enable = false;
580 if (!args->GetBoolean(0, &enable)) 581 if (!args->GetBoolean(0, &enable))
581 NOTREACHED(); 582 NOTREACHED();
582 583
583 GetDisplayManager()->SetDefaultMultiDisplayModeForCurrentDisplays( 584 GetDisplayManager()->SetDefaultMultiDisplayModeForCurrentDisplays(
584 enable ? ash::DisplayManager::UNIFIED : ash::DisplayManager::EXTENDED); 585 enable ? ash::DisplayManager::UNIFIED : ash::DisplayManager::EXTENDED);
585 } 586 }
586 587
587 } // namespace options 588 } // namespace options
588 } // namespace chromeos 589 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698