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

Unified Diff: chrome/browser/extensions/display_info_provider_chromeos.cc

Issue 2906803002: Rename MaximizeMode to TabletMode (Closed)
Patch Set: updated filter Created 3 years, 7 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: chrome/browser/extensions/display_info_provider_chromeos.cc
diff --git a/chrome/browser/extensions/display_info_provider_chromeos.cc b/chrome/browser/extensions/display_info_provider_chromeos.cc
index a7dc13e29d093f2fb7a283e22162fe0e78aee8db..b6fa4805e2652d3320612e19a4fb4dbf8722e3ba 100644
--- a/chrome/browser/extensions/display_info_provider_chromeos.cc
+++ b/chrome/browser/extensions/display_info_provider_chromeos.cc
@@ -11,7 +11,7 @@
#include "ash/display/screen_orientation_controller_chromeos.h"
#include "ash/shell.h"
#include "ash/touch/ash_touch_transform_controller.h"
-#include "ash/wm/maximize_mode/maximize_mode_controller.h"
+#include "ash/wm/tablet_mode/tablet_mode_controller.h"
#include "base/strings/string_number_conversions.h"
#include "chrome/browser/chromeos/display/display_preferences.h"
#include "chrome/browser/chromeos/display/overscan_calibrator.h"
@@ -420,10 +420,10 @@ bool ValidateParamsForTouchCalibration(
return true;
}
-bool IsMaximizeModeWindowManagerEnabled() {
+bool IsTabletModeWindowManagerEnabled() {
return ash::Shell::Get()
- ->maximize_mode_controller()
- ->IsMaximizeModeWindowManagerEnabled();
+ ->tablet_mode_controller()
+ ->IsTabletModeWindowManagerEnabled();
}
} // namespace
@@ -517,7 +517,7 @@ bool DisplayInfoProviderChromeOS::SetInfo(
// Process 'rotation' parameter.
if (info.rotation) {
- if (IsMaximizeModeWindowManagerEnabled() &&
+ if (IsTabletModeWindowManagerEnabled() &&
display_id == display::Display::InternalDisplayId()) {
ash::Shell::Get()->screen_orientation_controller()->SetLockToRotation(
DegreesToRotation(*info.rotation));

Powered by Google App Engine
This is Rietveld 408576698