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

Unified Diff: ash/test/shell_test_api.cc

Issue 1594683002: Introduce DisplayConfigurationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_576375_display1b1
Patch Set: Rebase Created 4 years, 11 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
Index: ash/test/shell_test_api.cc
diff --git a/ash/test/shell_test_api.cc b/ash/test/shell_test_api.cc
index c9a3bf467fe67a065be042b0df5b745c4b9fb7d4..f927848aeb3e62c8227b75f8d2ed0645ac91093a 100644
--- a/ash/test/shell_test_api.cc
+++ b/ash/test/shell_test_api.cc
@@ -10,7 +10,7 @@
#include "ash/shell.h"
#if defined(OS_CHROMEOS)
-#include "ash/display/display_animator.h"
+#include "ash/display/display_configuration_controller.h"
#include "ui/display/chromeos/display_configurator.h"
#endif
@@ -53,11 +53,7 @@ AppListController* ShellTestApi::app_list_controller() {
void ShellTestApi::DisableDisplayAnimator() {
#if defined(OS_CHROMEOS)
- if (shell_->display_animator_) {
- shell_->display_configurator_->RemoveObserver(
- shell_->display_animator_.get());
- shell_->display_animator_.reset();
- }
+ shell_->display_configuration_controller()->ResetAnimatorForTest();
#endif // defined(OS_CHROMEOS)
}

Powered by Google App Engine
This is Rietveld 408576698