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

Issue 2710593010: Reland of (Set)IsOverridingUserAgent should be called on VisibleItem (Closed)

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

Description

Reland of (Set)IsOverridingUserAgent should be called on VisibleItem (patchset #9 id:180001 of https://codereview.chromium.org/2711683002/ ) Reason for reland: Fixed the bugs. Original issues description: Revert of (Set)IsOverridingUserAgent should be called on VisibleItem (patchset #9 id:180001 of https://codereview.chromium.org/2711683002/ ) Reason for revert: Causes ToolsPopupMenuTestCase.testToolsMenuRequestDesktopNetwork to fail with error: ../../ios/chrome/browser/ui/tools_menu/tools_popup_menu_egtest.mm:109: error: -[ToolsPopupMenuTestCase testToolsMenuRequestDesktopNetwork] : Exception: NoMatchingElementException Original issue's description: > (Set)IsOverridingUserAgent should be called on VisibleItem > > As explained in the associated bug, it always makes sense to call > IsOverridingUserAgent() and SetIsOverridingUserAgent() on visible item > instead of current item. Thus this CL changes CurrentItem to VisibleItem > wherever necessary. > > Besides, this CL also does the following refactoring to have > NavigationManagerImpl encapsulate VisibleItem for calling > (Set)IsOverridingUserAgent() to provide one more layer of abstraction. > > BUG=693794 > > Review-Url: https://codereview.chromium.org/2711683002 > Cr-Commit-Position: refs/heads/master@{#452570} > Committed: https://chromium.googlesource.com/chromium/src/+/21359189a7883d38a531e8681cc250bdf301fa85 TBR=eugenebut@chromium.org,kkhorimoto@chromium.org,liaoyuke@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=693794 Review-Url: https://codereview.chromium.org/2711733007 Cr-Commit-Position: refs/heads/master@{#452713} Committed: https://chromium.googlesource.com/chromium/src/+/55a8e3f7414855960a20135217d32de930466f3d BUG= Review-Url: https://codereview.chromium.org/2710593010 Cr-Commit-Position: refs/heads/master@{#452945} Committed: https://chromium.googlesource.com/chromium/src/+/b8453e1f8d0bd721540c5d4741f3b75e782eaf1d

Patch Set 1 #

Patch Set 2 : Fixes #

Patch Set 3 : Update comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -22 lines) Patch
M ios/chrome/browser/tabs/tab.h View 1 chunk +4 lines, -1 line 0 comments Download
M ios/chrome/browser/tabs/tab.mm View 1 chunk +7 lines, -4 lines 0 comments Download
M ios/chrome/browser/ui/browser_view_controller.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M ios/web/navigation/crw_session_controller.mm View 3 chunks +9 lines, -10 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 chunks +5 lines, -5 lines 2 comments Download

Messages

Total messages: 24 (16 generated)
liaoyuke
Hey Eugene, Kurt, PTAL. Thank you very much!
3 years, 10 months ago (2017-02-24 18:06:02 UTC) #4
Eugene But (OOO till 7-30)
lgtm
3 years, 10 months ago (2017-02-24 18:26:32 UTC) #5
kkhorimoto
https://codereview.chromium.org/2710593010/diff/40001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2710593010/diff/40001/ios/web/web_state/ui/crw_web_controller.mm#newcode463 ios/web/web_state/ui/crw_web_controller.mm:463: @property(nonatomic, readonly) BOOL usesDesktopUserAgent; Again, I think that it ...
3 years, 10 months ago (2017-02-24 19:21:27 UTC) #6
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2710593010/diff/40001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2710593010/diff/40001/ios/web/web_state/ui/crw_web_controller.mm#newcode463 ios/web/web_state/ui/crw_web_controller.mm:463: @property(nonatomic, readonly) BOOL usesDesktopUserAgent; On 2017/02/24 19:21:27, kkhorimoto_ wrote: ...
3 years, 10 months ago (2017-02-24 19:49:18 UTC) #7
liaoyuke
On 2017/02/24 19:49:18, Eugene But wrote: > https://codereview.chromium.org/2710593010/diff/40001/ios/web/web_state/ui/crw_web_controller.mm > File ios/web/web_state/ui/crw_web_controller.mm (right): > > https://codereview.chromium.org/2710593010/diff/40001/ios/web/web_state/ui/crw_web_controller.mm#newcode463 ...
3 years, 10 months ago (2017-02-24 20:01:07 UTC) #8
kkhorimoto
On 2017/02/24 20:01:07, liaoyuke wrote: > On 2017/02/24 19:49:18, Eugene But wrote: > > > ...
3 years, 10 months ago (2017-02-24 21:06:47 UTC) #9
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/2710593010/40001
3 years, 10 months ago (2017-02-24 22:05:41 UTC) #21
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 22:09:29 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b8453e1f8d0bd721540c5d4741f3...

Powered by Google App Engine
This is Rietveld 408576698