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

Unified Diff: ash/content/screen_orientation_delegate_chromeos.cc

Issue 2895713002: [mus+ash] Removes WmWindow from ash/wm/mru_window_tracker and overview mode (Closed)
Patch Set: Address nits, unit_tests target compiles 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: ash/content/screen_orientation_delegate_chromeos.cc
diff --git a/ash/content/screen_orientation_delegate_chromeos.cc b/ash/content/screen_orientation_delegate_chromeos.cc
index 32a42311dbb8f1d41bab1e12a6d943cd98be24bf..11d94ae1012aa2fec3b80e50701c3107ac8523c1 100644
--- a/ash/content/screen_orientation_delegate_chromeos.cc
+++ b/ash/content/screen_orientation_delegate_chromeos.cc
@@ -6,7 +6,6 @@
#include "ash/display/screen_orientation_controller_chromeos.h"
#include "ash/shell.h"
-#include "ash/wm_window.h"
#include "content/public/browser/web_contents.h"
namespace ash {
@@ -28,7 +27,7 @@ void ScreenOrientationDelegateChromeos::Lock(
content::WebContents* web_contents,
blink::WebScreenOrientationLockType lock_orientation) {
Shell::Get()->screen_orientation_controller()->LockOrientationForWindow(
- WmWindow::Get(web_contents->GetNativeView()), lock_orientation,
+ web_contents->GetNativeView(), lock_orientation,
ScreenOrientationController::LockCompletionBehavior::None);
}
@@ -41,7 +40,7 @@ bool ScreenOrientationDelegateChromeos::ScreenOrientationProviderSupported() {
void ScreenOrientationDelegateChromeos::Unlock(
content::WebContents* web_contents) {
Shell::Get()->screen_orientation_controller()->UnlockOrientationForWindow(
- WmWindow::Get(web_contents->GetNativeView()));
+ web_contents->GetNativeView());
}
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698