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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1064413003: PlzNavigate: make RenderViewtest helper functions work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 8915dea7ec91fbd213aceb3082888316ef559384..bc0ff19ab9da5e6ab09ae4f65fa445fd3d3d97fd 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -1064,6 +1064,8 @@ void RenderFrameImpl::OnNavigate(
const CommonNavigationParams& common_params,
const StartNavigationParams& start_params,
const RequestNavigationParams& request_params) {
+ CHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch(
clamy 2015/04/08 14:19:30 I added the CHECK to catch tests that manually cal
carlosk 2015/04/08 15:16:42 Good idea! Will make it way easier to find those m
Charlie Reis 2015/04/09 00:47:40 Sounds good. Can you make this a DCHECK instead?
clamy 2015/04/09 15:55:06 Done.
+ switches::kEnableBrowserSideNavigation));
TRACE_EVENT2("navigation", "RenderFrameImpl::OnNavigate", "id", routing_id_,
"url", common_params.url.possibly_invalid_spec());

Powered by Google App Engine
This is Rietveld 408576698