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

Unified Diff: content/browser/frame_host/cross_process_frame_connector.cc

Issue 2883653002: Implement TouchSelectionEditing controls for OOPIF. (Closed)
Patch Set: Rebase to master@{#474649}. 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: content/browser/frame_host/cross_process_frame_connector.cc
diff --git a/content/browser/frame_host/cross_process_frame_connector.cc b/content/browser/frame_host/cross_process_frame_connector.cc
index 5fc3c272ef19dfb3f5df3afda32797ba782d5477..1ca49b4e402412afe8f5e5282ec3a5df73b00661 100644
--- a/content/browser/frame_host/cross_process_frame_connector.cc
+++ b/content/browser/frame_host/cross_process_frame_connector.cc
@@ -301,6 +301,10 @@ void CrossProcessFrameConnector::SetRect(const gfx::Rect& frame_rect) {
RenderWidgetHostViewBase*
CrossProcessFrameConnector::GetRootRenderWidgetHostView() {
+ // Tests may not have frame_proxy_in_parent_renderer_ set.
+ if (!frame_proxy_in_parent_renderer_)
+ return nullptr;
+
RenderFrameHostImpl* top_host = frame_proxy_in_parent_renderer_->
frame_tree_node()->frame_tree()->root()->current_frame_host();

Powered by Google App Engine
This is Rietveld 408576698