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

Issue 2779383002: implement user agent override option. (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

implement user agent override option. This CL implements the UserAgentOverrideOption enum class in NavigationManager to replace the override_desktop_user_agent_for_next_pending_item_ flag, and also added corresponding unit tests to verify that UserAgentOverrideOption is working as intended. BUG=692303 Review-Url: https://codereview.chromium.org/2779383002 Cr-Commit-Position: refs/heads/master@{#460918} Committed: https://chromium.googlesource.com/chromium/src/+/60323989ade77aa658a4e5b4974b6673b14fc399

Patch Set 1 #

Total comments: 3

Patch Set 2 : Change if statements to switch #

Total comments: 9

Patch Set 3 : Addressed comments and added unit tests #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -146 lines) Patch
M ios/chrome/browser/tabs/tab.h View 1 chunk +0 lines, -4 lines 0 comments Download
M ios/chrome/browser/tabs/tab.mm View 1 2 3 4 chunks +7 lines, -8 lines 0 comments Download
M ios/chrome/browser/tabs/tab_unittest.mm View 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/browser_view_controller.mm View 1 chunk +0 lines, -1 line 0 comments Download
M ios/web/navigation/navigation_manager_impl.h View 3 chunks +7 lines, -13 lines 0 comments Download
M ios/web/navigation/navigation_manager_impl.mm View 1 2 3 7 chunks +30 lines, -35 lines 0 comments Download
M ios/web/navigation/navigation_manager_impl_unittest.mm View 1 2 3 22 chunks +174 lines, -66 lines 0 comments Download
M ios/web/public/navigation_manager.h View 1 2 3 chunks +17 lines, -6 lines 0 comments Download
M ios/web/public/test/fakes/test_navigation_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M ios/web/public/test/fakes/test_navigation_manager.mm View 1 chunk +0 lines, -4 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller_unittest.mm View 3 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 36 (26 generated)
liaoyuke
Hey Eugene, Kurt, PTAL. FYI: this CL is independent from the transient item one. Take ...
3 years, 8 months ago (2017-03-30 00:01:05 UTC) #5
kkhorimoto
The general approach looks good, but I'm confused about how this fits together with our ...
3 years, 8 months ago (2017-03-30 02:30:28 UTC) #6
liaoyuke
On 2017/03/30 02:30:28, kkhorimoto_ wrote: > The general approach looks good, but I'm confused about ...
3 years, 8 months ago (2017-03-30 02:51:24 UTC) #8
kkhorimoto
Yep, that clears it up for me, thanks! lgtm
3 years, 8 months ago (2017-03-30 19:04:02 UTC) #9
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2779383002/diff/60001/ios/web/navigation/navigation_manager_impl.mm File ios/web/navigation/navigation_manager_impl.mm (right): https://codereview.chromium.org/2779383002/diff/60001/ios/web/navigation/navigation_manager_impl.mm#newcode222 ios/web/navigation/navigation_manager_impl.mm:222: default: There is no need for default, which prevents ...
3 years, 8 months ago (2017-03-30 19:21:25 UTC) #10
liaoyuke
PTAL. Thank you very much! https://codereview.chromium.org/2779383002/diff/40001/ios/web/navigation/navigation_manager_impl.mm File ios/web/navigation/navigation_manager_impl.mm (right): https://codereview.chromium.org/2779383002/diff/40001/ios/web/navigation/navigation_manager_impl.mm#newcode203 ios/web/navigation/navigation_manager_impl.mm:203: if (user_agent_override_option == UserAgentOverrideOption::DESKTOP) ...
3 years, 8 months ago (2017-03-30 19:56:25 UTC) #12
Eugene But (OOO till 7-30)
lgtm https://codereview.chromium.org/2779383002/diff/60001/ios/web/navigation/navigation_manager_impl.mm File ios/web/navigation/navigation_manager_impl.mm (right): https://codereview.chromium.org/2779383002/diff/60001/ios/web/navigation/navigation_manager_impl.mm#newcode222 ios/web/navigation/navigation_manager_impl.mm:222: default: On 2017/03/30 19:56:25, liaoyuke wrote: > On ...
3 years, 8 months ago (2017-03-30 20:42:31 UTC) #13
liaoyuke
On 2017/03/30 20:42:31, Eugene But wrote: > lgtm > > https://codereview.chromium.org/2779383002/diff/60001/ios/web/navigation/navigation_manager_impl.mm > File ios/web/navigation/navigation_manager_impl.mm (right): ...
3 years, 8 months ago (2017-03-30 20:50:29 UTC) #14
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/2779383002/160001
3 years, 8 months ago (2017-03-30 22:48:58 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 23:14:31 UTC) #36
Message was sent while issue was closed.
Committed patchset #4 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/60323989ade77aa658a4e5b4974b...

Powered by Google App Engine
This is Rietveld 408576698