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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 398013002: Poll for Display rotation on Android 4.0 and 4.1 when needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: call ScreenOrientationListener on UI thread Created 6 years, 4 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 | « no previous file | content/browser/screen_orientation/screen_orientation_message_filter_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index bbd594953831ea4bc7d087a1b0ba9f4f5eb8f4f2..611d602bd70c1e78a068041230108d2208e82cc6 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -152,6 +152,7 @@
#if defined(OS_ANDROID)
#include "content/browser/media/android/browser_demuxer_android.h"
#include "content/browser/renderer_host/compositor_impl_android.h"
+#include "content/browser/screen_orientation/screen_orientation_message_filter_android.h"
#include "content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h"
#endif
@@ -893,6 +894,9 @@ void RenderProcessHostImpl::CreateMessageFilters() {
AddFilter(new PushMessagingMessageFilter(
GetID(), storage_partition_impl_->GetServiceWorkerContext()));
AddFilter(new BatteryStatusMessageFilter());
+#if defined(OS_ANDROID)
+ AddFilter(new ScreenOrientationMessageFilterAndroid());
+#endif
}
int RenderProcessHostImpl::GetNextRoutingID() {
« no previous file with comments | « no previous file | content/browser/screen_orientation/screen_orientation_message_filter_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698