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

Unified Diff: content/renderer/visual_state_browsertest.cc

Issue 2515823002: Remove WebContents::GetRoutingID(). (Closed)
Patch Set: add render_view_host.h include in resource_dispatcher_host_unittest.cc 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
Index: content/renderer/visual_state_browsertest.cc
diff --git a/content/renderer/visual_state_browsertest.cc b/content/renderer/visual_state_browsertest.cc
index 2a8b49bff8fea2188eff5e7d8925cedc9b7cbc7a..178d538d238815210c80aadeedde38288a0d5c65 100644
--- a/content/renderer/visual_state_browsertest.cc
+++ b/content/renderer/visual_state_browsertest.cc
@@ -5,6 +5,7 @@
#include "base/command_line.h"
#include "base/run_loop.h"
#include "content/public/browser/render_frame_host.h"
+#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_switches.h"
#include "content/public/renderer/render_view.h"
@@ -101,8 +102,8 @@ IN_PROC_BROWSER_TEST_F(VisualStateTest, DISABLED_CallbackDoesNotDeadlock) {
// with a high level of confidence if we used a timeout, but that's
// discouraged (see https://codereview.chromium.org/939673002).
NavigateToURL(shell(), GURL("about:blank"));
- CommitObserver observer(
- RenderView::FromRoutingID(shell()->web_contents()->GetRoutingID()));
+ CommitObserver observer(RenderView::FromRoutingID(
+ shell()->web_contents()->GetRenderViewHost()->GetRoutingID()));
// Wait for the commit corresponding to the load.
« no previous file with comments | « content/public/browser/web_contents_observer.cc ('k') | content/shell/browser/layout_test/blink_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698