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

Issue 2805453002: Reland of Set user agent type of transient item the same as pending item (Closed)

Created:
3 years, 8 months ago by liaoyuke
Modified:
3 years, 8 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, Eugene But (OOO till 7-30), baxley+watch_chromium.org, pkl (ping after 24h if needed), ios-reviews+web_chromium.org, noyau+watch_chromium.org, marq+watch_chromium.org, huangml+watch_chromium.org, liaoyuke+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of Set user agent type of transient item the same as pending item The original CL assumes that a pending item should always exists when adding a transient item, however this sometimes breaks because as described in crbug.com/676129, NavigationManagerImpl or CRWSessionController don't create a pending item if its URL is the same as the last committed item. This CL fixes the problem by relaxing the condition to the following: if pending item exists, use pending item's user agent type, otherwise use last committed non-native item's user agent type. BUG=676129 Review-Url: https://codereview.chromium.org/2805453002 Cr-Commit-Position: refs/heads/master@{#462271} Committed: https://chromium.googlesource.com/chromium/src/+/f2ccf5b200be3027dd7b67346574689fc483500f

Patch Set 1 : Patch original CL #

Patch Set 2 : Fix #

Total comments: 2

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Address comments #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -7 lines) Patch
M ios/chrome/browser/ssl/ios_ssl_error_handler_unittest.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M ios/web/interstitials/web_interstitial_impl.mm View 2 chunks +3 lines, -7 lines 0 comments Download
M ios/web/navigation/navigation_manager_impl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ios/web/navigation/navigation_manager_impl.mm View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M ios/web/navigation/navigation_manager_impl_unittest.mm View 1 chunk +38 lines, -0 lines 0 comments Download
M ios/web/public/test/web_test_with_web_state.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ios/web/public/test/web_test_with_web_state.mm View 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
liaoyuke
PTAL. Thank you very much!
3 years, 8 months ago (2017-04-05 17:52:54 UTC) #2
kkhorimoto
lgtm
3 years, 8 months ago (2017-04-05 18:16:08 UTC) #3
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2805453002/diff/20001/ios/web/navigation/navigation_manager_impl.mm File ios/web/navigation/navigation_manager_impl.mm (right): https://codereview.chromium.org/2805453002/diff/20001/ios/web/navigation/navigation_manager_impl.mm#newcode179 ios/web/navigation/navigation_manager_impl.mm:179: if (GetPendingItem()) { Could you please avoid code duplication. ...
3 years, 8 months ago (2017-04-05 20:12:28 UTC) #4
liaoyuke
PTAL. Thanks! https://codereview.chromium.org/2805453002/diff/20001/ios/web/navigation/navigation_manager_impl.mm File ios/web/navigation/navigation_manager_impl.mm (right): https://codereview.chromium.org/2805453002/diff/20001/ios/web/navigation/navigation_manager_impl.mm#newcode179 ios/web/navigation/navigation_manager_impl.mm:179: if (GetPendingItem()) { On 2017/04/05 20:12:28, Eugene ...
3 years, 8 months ago (2017-04-05 20:29:40 UTC) #6
liaoyuke
PTAL. Thanks!
3 years, 8 months ago (2017-04-05 22:03:29 UTC) #7
Eugene But (OOO till 7-30)
lgtm! https://codereview.chromium.org/2805453002/diff/60001/ios/web/navigation/navigation_manager_impl.mm File ios/web/navigation/navigation_manager_impl.mm (right): https://codereview.chromium.org/2805453002/diff/60001/ios/web/navigation/navigation_manager_impl.mm#newcode176 ios/web/navigation/navigation_manager_impl.mm:176: // TODO(crbug.com/676129): Add a DCHECK that pending item ...
3 years, 8 months ago (2017-04-05 22:05:39 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2805453002/100001
3 years, 8 months ago (2017-04-05 23:18:23 UTC) #19
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 23:31:51 UTC) #22
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/f2ccf5b200be3027dd7b67346574...

Powered by Google App Engine
This is Rietveld 408576698