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

Unified Diff: ash/wm/maximize_mode/maximize_mode_controller_unittest.cc

Issue 822503003: Change AccelerometerReader to a Singleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update new dependency Created 5 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
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_controller.cc ('k') | athena/system/orientation_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc b/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
index 40ce4b2c76add812b7778492636a8b0387a4734c..bed25857e0feeeea5630c7d12d2d0529b4a596b0 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
+++ b/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
@@ -57,7 +57,7 @@ class MaximizeModeControllerTest : public test::AshTestBase {
void SetUp() override {
test::AshTestBase::SetUp();
- Shell::GetInstance()->accelerometer_reader()->RemoveObserver(
+ chromeos::AccelerometerReader::GetInstance()->RemoveObserver(
maximize_mode_controller());
// Set the first display to be the internal display for the accelerometer
@@ -67,7 +67,7 @@ class MaximizeModeControllerTest : public test::AshTestBase {
}
void TearDown() override {
- Shell::GetInstance()->accelerometer_reader()->AddObserver(
+ chromeos::AccelerometerReader::GetInstance()->AddObserver(
maximize_mode_controller());
test::AshTestBase::TearDown();
}
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_controller.cc ('k') | athena/system/orientation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698