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

Issue 1010243002: PlzNavigate: Properly set the pending entry in the NavigatorImpl unit test. (Closed)

Created:
5 years, 9 months ago by Avi (use Gerrit)
Modified:
5 years, 9 months ago
Reviewers:
Charlie Reis, clamy
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Trigger navigation via the NavigationController in the NavigatorImpl unit tests. BUG=369661 TEST=tests should stay passing Committed: https://crrev.com/73777224191ef2115df9956c794db4cedac08da3 Cr-Commit-Position: refs/heads/master@{#321392}

Patch Set 1 #

Total comments: 2

Patch Set 2 : comment and check #

Patch Set 3 : better approach #

Total comments: 3

Patch Set 4 : simpler #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -21 lines) Patch
M content/browser/frame_host/navigator_impl_unittest.cc View 1 2 3 3 chunks +10 lines, -21 lines 2 comments Download

Messages

Total messages: 20 (3 generated)
Avi (use Gerrit)
The problem here is that NavigatorImpl::RequestNavigation is called through NavigateToPendingEntry which is called from WebContents::NavigateToPendingEntry ...
5 years, 9 months ago (2015-03-17 17:37:07 UTC) #2
Charlie Reis
Unfortunate that we need to expose this setter for testing code, but it does look ...
5 years, 9 months ago (2015-03-17 22:20:22 UTC) #3
Avi (use Gerrit)
Charlie— I'm not clear what you mean by "clarify". I put in a comment, but ...
5 years, 9 months ago (2015-03-17 23:28:16 UTC) #4
Charlie Reis
LGTM
5 years, 9 months ago (2015-03-17 23:39:40 UTC) #5
Avi (use Gerrit)
On 2015/03/17 23:39:40, Charlie Reis wrote: > LGTM Thank you. Camille—what do you think?
5 years, 9 months ago (2015-03-17 23:49:14 UTC) #6
clamy
Thanks! I'm just wondering if we can't use the NavigationController directly to start the navigations ...
5 years, 9 months ago (2015-03-18 12:46:17 UTC) #7
Avi (use Gerrit)
On 2015/03/18 12:46:17, clamy wrote: > Thanks! I'm just wondering if we can't use the ...
5 years, 9 months ago (2015-03-18 15:25:18 UTC) #8
clamy
I'm thinking that in the long term it is cleaner not to have the setting ...
5 years, 9 months ago (2015-03-18 15:38:52 UTC) #9
Avi (use Gerrit)
New version; please take a look. This expands the existing SetPendingEntry call to always do ...
5 years, 9 months ago (2015-03-18 18:54:11 UTC) #10
Charlie Reis
This version also looks good to me, but I don't think it addresses Camille's request. ...
5 years, 9 months ago (2015-03-18 20:26:35 UTC) #11
Avi (use Gerrit)
On 2015/03/18 20:26:35, Charlie Reis wrote: > This version also looks good to me, but ...
5 years, 9 months ago (2015-03-18 20:32:42 UTC) #12
clamy
What I had in mind was to rewrite the helper function to use NavigationController::LoadURL, which ...
5 years, 9 months ago (2015-03-19 12:18:04 UTC) #13
Avi (use Gerrit)
https://codereview.chromium.org/1010243002/diff/60001/content/browser/frame_host/navigator_impl_unittest.cc File content/browser/frame_host/navigator_impl_unittest.cc (right): https://codereview.chromium.org/1010243002/diff/60001/content/browser/frame_host/navigator_impl_unittest.cc#newcode781 content/browser/frame_host/navigator_impl_unittest.cc:781: controller().ReloadIgnoringCache(false); Note that ReloadType isn't a part of LoadURLParams, ...
5 years, 9 months ago (2015-03-19 14:51:16 UTC) #14
clamy
Thanks! Lgtm. https://codereview.chromium.org/1010243002/diff/60001/content/browser/frame_host/navigator_impl_unittest.cc File content/browser/frame_host/navigator_impl_unittest.cc (right): https://codereview.chromium.org/1010243002/diff/60001/content/browser/frame_host/navigator_impl_unittest.cc#newcode781 content/browser/frame_host/navigator_impl_unittest.cc:781: controller().ReloadIgnoringCache(false); On 2015/03/19 14:51:16, Avi wrote: > ...
5 years, 9 months ago (2015-03-19 16:34:52 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1010243002/60001
5 years, 9 months ago (2015-03-19 17:44:52 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-19 18:04:41 UTC) #19
commit-bot: I haz the power
5 years, 9 months ago (2015-03-19 18:05:27 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/73777224191ef2115df9956c794db4cedac08da3
Cr-Commit-Position: refs/heads/master@{#321392}

Powered by Google App Engine
This is Rietveld 408576698