| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/chromeos/policy/display_rotation_default_handler.h" | 5 #include "chrome/browser/chromeos/policy/display_rotation_default_handler.h" | 
| 6 | 6 | 
| 7 #include <stddef.h> | 7 #include <stddef.h> | 
| 8 | 8 | 
| 9 #include "ash/common/wm_shell.h" |  | 
| 10 #include "ash/shell.h" | 9 #include "ash/shell.h" | 
|  | 10 #include "ash/wm_shell.h" | 
| 11 #include "base/bind.h" | 11 #include "base/bind.h" | 
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" | 
| 13 #include "base/location.h" | 13 #include "base/location.h" | 
| 14 #include "base/logging.h" | 14 #include "base/logging.h" | 
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" | 
| 16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" | 
| 17 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" | 
| 18 #include "chromeos/settings/cros_settings_names.h" | 18 #include "chromeos/settings/cros_settings_names.h" | 
| 19 #include "ui/display/manager/display_manager.h" | 19 #include "ui/display/manager/display_manager.h" | 
| 20 | 20 | 
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 103       (new_policy_enabled && | 103       (new_policy_enabled && | 
| 104        new_display_rotation_default != display_rotation_default_)) { | 104        new_display_rotation_default != display_rotation_default_)) { | 
| 105     policy_enabled_ = new_policy_enabled; | 105     policy_enabled_ = new_policy_enabled; | 
| 106     display_rotation_default_ = new_display_rotation_default; | 106     display_rotation_default_ = new_display_rotation_default; | 
| 107     return true; | 107     return true; | 
| 108   } | 108   } | 
| 109   return false; | 109   return false; | 
| 110 } | 110 } | 
| 111 | 111 | 
| 112 }  // namespace policy | 112 }  // namespace policy | 
| OLD | NEW | 
|---|