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

Unified Diff: trunk/src/content/renderer/dom_serializer_browsertest.cc

Issue 105523006: Revert 241151 "Make RenderFrameHostManager swap RenderFrameHosts..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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: trunk/src/content/renderer/dom_serializer_browsertest.cc
===================================================================
--- trunk/src/content/renderer/dom_serializer_browsertest.cc (revision 241158)
+++ trunk/src/content/renderer/dom_serializer_browsertest.cc (working copy)
@@ -51,13 +51,6 @@
using blink::WebView;
using blink::WebVector;
-namespace {
-
-// The first RenderFrame is routing ID 1, and the first RenderView is 2.
-const int kRenderViewRoutingId = 2;
-
-}
-
namespace content {
// Iterate recursively over sub-frames to find one with with a given url.
@@ -230,7 +223,7 @@
RenderView* GetRenderView() {
// We could have the test on the UI thread get the WebContent's routing ID,
// but we know this will be the first RV so skip that and just hardcode it.
- return RenderView::FromRoutingID(kRenderViewRoutingId);
+ return RenderView::FromRoutingID(1);
}
WebView* GetWebView() {

Powered by Google App Engine
This is Rietveld 408576698