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

Side by Side Diff: content/public/test/render_view_test.cc

Issue 2875793002: Why this CL triggers an OilPan crash.
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « content/common/renderer.mojom ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/test/render_view_test.h" 5 #include "content/public/test/render_view_test.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cctype> 9 #include <cctype>
10 10
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 291
292 mojom::CreateViewParams view_params; 292 mojom::CreateViewParams view_params;
293 view_params.opener_frame_route_id = MSG_ROUTING_NONE; 293 view_params.opener_frame_route_id = MSG_ROUTING_NONE;
294 view_params.window_was_created_with_opener = false; 294 view_params.window_was_created_with_opener = false;
295 view_params.renderer_preferences = RendererPreferences(); 295 view_params.renderer_preferences = RendererPreferences();
296 view_params.web_preferences = WebPreferences(); 296 view_params.web_preferences = WebPreferences();
297 view_params.view_id = kRouteId; 297 view_params.view_id = kRouteId;
298 view_params.main_frame_routing_id = kMainFrameRouteId; 298 view_params.main_frame_routing_id = kMainFrameRouteId;
299 view_params.main_frame_widget_routing_id = kMainFrameWidgetRouteId; 299 view_params.main_frame_widget_routing_id = kMainFrameWidgetRouteId;
300 view_params.session_storage_namespace_id = kInvalidSessionStorageNamespaceId; 300 view_params.session_storage_namespace_id = kInvalidSessionStorageNamespaceId;
301 view_params.browsing_instance_id = blink::WebView::kUnknownBrowsingInstance;
301 view_params.swapped_out = false; 302 view_params.swapped_out = false;
302 view_params.replicated_frame_state = FrameReplicationState(); 303 view_params.replicated_frame_state = FrameReplicationState();
303 view_params.proxy_routing_id = MSG_ROUTING_NONE; 304 view_params.proxy_routing_id = MSG_ROUTING_NONE;
304 view_params.hidden = false; 305 view_params.hidden = false;
305 view_params.never_visible = false; 306 view_params.never_visible = false;
306 view_params.initial_size = *InitialSizeParams(); 307 view_params.initial_size = *InitialSizeParams();
307 view_params.enable_auto_resize = false; 308 view_params.enable_auto_resize = false;
308 view_params.min_size = gfx::Size(); 309 view_params.min_size = gfx::Size();
309 view_params.max_size = gfx::Size(); 310 view_params.max_size = gfx::Size();
310 311
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 static_cast<TestRenderFrame*>(impl->GetMainRenderFrame()); 663 static_cast<TestRenderFrame*>(impl->GetMainRenderFrame());
663 frame->Navigate(common_params, StartNavigationParams(), request_params); 664 frame->Navigate(common_params, StartNavigationParams(), request_params);
664 665
665 // The load actually happens asynchronously, so we pump messages to process 666 // The load actually happens asynchronously, so we pump messages to process
666 // the pending continuation. 667 // the pending continuation.
667 FrameLoadWaiter(frame).Wait(); 668 FrameLoadWaiter(frame).Wait();
668 view_->GetWebView()->UpdateAllLifecyclePhases(); 669 view_->GetWebView()->UpdateAllLifecyclePhases();
669 } 670 }
670 671
671 } // namespace content 672 } // namespace content
OLDNEW
« no previous file with comments | « content/common/renderer.mojom ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698