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

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

Issue 2499313003: Set user_gesture bit at NavigationHandle creation time. (Closed)
Patch Set: address comments 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/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 6184d72183851e2b9d0888fa0e92c8a8966393ff..b6573fa8d7f2991c2047677b5e79b5187314a50a 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -509,7 +509,7 @@ void RenderViewTest::SetFocused(const blink::WebNode& node) {
void RenderViewTest::Reload(const GURL& url) {
CommonNavigationParams common_params(
url, Referrer(), ui::PAGE_TRANSITION_LINK, FrameMsg_Navigate_Type::RELOAD,
- true, false, base::TimeTicks(),
+ NavigationGestureAuto, true, false, base::TimeTicks(),
FrameMsg_UILoadMetricsReportType::NO_REPORT, GURL(), GURL(),
LOFI_UNSPECIFIED, base::TimeTicks::Now(), "GET", nullptr);
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
@@ -644,9 +644,9 @@ void RenderViewTest::GoToOffset(int offset,
CommonNavigationParams common_params(
url, Referrer(), ui::PAGE_TRANSITION_FORWARD_BACK,
- FrameMsg_Navigate_Type::NORMAL, true, false, base::TimeTicks(),
- FrameMsg_UILoadMetricsReportType::NO_REPORT, GURL(), GURL(),
- LOFI_UNSPECIFIED, base::TimeTicks::Now(), "GET", nullptr);
+ FrameMsg_Navigate_Type::NORMAL, NavigationGestureAuto, true, false,
+ base::TimeTicks(), FrameMsg_UILoadMetricsReportType::NO_REPORT, GURL(),
+ GURL(), LOFI_UNSPECIFIED, base::TimeTicks::Now(), "GET", nullptr);
RequestNavigationParams request_params;
request_params.page_state = state;
request_params.nav_entry_id = pending_offset + 1;

Powered by Google App Engine
This is Rietveld 408576698