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

Unified Diff: content/browser/screen_orientation/screen_orientation_delegate_android.cc

Issue 2685513002: [For trybots test] [ScreenOrientation] Hide ScreenOrientationProvider inside WebContentsImpl. (Closed)
Patch Set: Fix android bots Created 3 years, 10 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: content/browser/screen_orientation/screen_orientation_delegate_android.cc
diff --git a/content/browser/screen_orientation/screen_orientation_delegate_android.cc b/content/browser/screen_orientation/screen_orientation_delegate_android.cc
index 6a0dec1458edb7f51c9b2e0db3354e9f06cc78db..d534d30e15099658618537cdd6a28778b58402e3 100644
--- a/content/browser/screen_orientation/screen_orientation_delegate_android.cc
+++ b/content/browser/screen_orientation/screen_orientation_delegate_android.cc
@@ -5,6 +5,7 @@
#include "content/browser/screen_orientation/screen_orientation_delegate_android.h"
#include "content/browser/android/content_view_core_impl.h"
+#include "content/browser/screen_orientation/screen_orientation_provider.h"
#include "jni/ScreenOrientationProvider_jni.h"
#include "ui/android/window_android.h"
#include "ui/gfx/native_widget_types.h"
@@ -12,9 +13,11 @@
namespace content {
ScreenOrientationDelegateAndroid::ScreenOrientationDelegateAndroid() {
+ ScreenOrientationProvider::SetDelegate(this);
}
ScreenOrientationDelegateAndroid::~ScreenOrientationDelegateAndroid() {
+ ScreenOrientationProvider::SetDelegate(nullptr);
}
// static

Powered by Google App Engine
This is Rietveld 408576698