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

Unified Diff: content/renderer/render_widget_unittest.cc

Issue 2483593002: RenderWidget: hoist synchronous IPC out of Init methods. (Closed)
Patch Set: Handle IPC failure Created 4 years, 1 month 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 | « content/renderer/render_widget_fullscreen.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget_unittest.cc
diff --git a/content/renderer/render_widget_unittest.cc b/content/renderer/render_widget_unittest.cc
index 007e0b5c9a65caded726f89b323d13ae23d9f622..33f9b00c6b46926caeee023ee5ded38d304806f6 100644
--- a/content/renderer/render_widget_unittest.cc
+++ b/content/renderer/render_widget_unittest.cc
@@ -61,8 +61,7 @@ class InteractiveRenderWidget : public RenderWidget {
false),
always_overscroll_(false) {
webwidget_internal_ = &mock_webwidget_;
- // A RenderWidget is not fully initialized until it has a routing ID.
- SetRoutingID(++next_routing_id_);
+ InitRoutingID(++next_routing_id_);
}
void SetTouchRegion(const std::vector<gfx::Rect>& rects) {
@@ -379,8 +378,7 @@ class PopupRenderWidget : public RenderWidget {
false,
false) {
webwidget_internal_ = &mock_webwidget_;
- // A RenderWidget is not fully initialized until it has a routing ID.
- SetRoutingID(1);
+ InitRoutingID(1);
did_show_ = true;
}
« no previous file with comments | « content/renderer/render_widget_fullscreen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698