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

Unified Diff: content/public/test/render_view_test.cc

Issue 554743009: remove main_render_frame(), use GetMainRenderFrame() instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 3 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
« no previous file with comments | « no previous file | content/renderer/accessibility/renderer_accessibility_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/render_view_test.cc
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc
index dc1ed10826b32592f7c5790aa4c2b475e03e14c4..1399a0f2221fb9ddb6b0cba559b4f60636431736 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -340,8 +340,8 @@ void RenderViewTest::Reload(const GURL& url) {
params.url = url;
params.navigation_type = FrameMsg_Navigate_Type::RELOAD;
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
- impl->main_render_frame()->OnNavigate(params);
- FrameLoadWaiter(impl->main_render_frame()).Wait();
+ impl->GetMainRenderFrame()->OnNavigate(params);
+ FrameLoadWaiter(impl->GetMainRenderFrame()).Wait();
}
uint32 RenderViewTest::GetNavigationIPCType() {
@@ -372,7 +372,7 @@ void RenderViewTest::DidNavigateWithinPage(blink::WebLocalFrame* frame,
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
blink::WebHistoryItem item;
item.initialize();
- impl->main_render_frame()->didNavigateWithinPage(
+ impl->GetMainRenderFrame()->didNavigateWithinPage(
frame,
item,
is_new_navigation ? blink::WebStandardCommit
@@ -419,9 +419,9 @@ void RenderViewTest::GoToOffset(int offset, const PageState& state) {
navigate_params.page_state = state;
navigate_params.request_time = base::Time::Now();
- FrameMsg_Navigate navigate_message(impl->main_render_frame()->GetRoutingID(),
+ FrameMsg_Navigate navigate_message(impl->GetMainRenderFrame()->GetRoutingID(),
navigate_params);
- impl->main_render_frame()->OnMessageReceived(navigate_message);
+ impl->GetMainRenderFrame()->OnMessageReceived(navigate_message);
// The load actually happens asynchronously, so we pump messages to process
// the pending continuation.
« no previous file with comments | « no previous file | content/renderer/accessibility/renderer_accessibility_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698