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

Issue 2711733007: Revert of (Set)IsOverridingUserAgent should be called on VisibleItem (Closed)

Created:
3 years, 10 months ago by gchatz
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

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

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -34 lines) Patch
M ios/chrome/browser/tabs/tab.h View 1 chunk +1 line, -4 lines 0 comments Download
M ios/chrome/browser/tabs/tab.mm View 1 chunk +4 lines, -7 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 +11 lines, -10 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 3 chunks +7 lines, -11 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
gchatz
Created Revert of (Set)IsOverridingUserAgent should be called on VisibleItem
3 years, 10 months ago (2017-02-24 01:44:08 UTC) #2
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/2711733007/1
3 years, 10 months ago (2017-02-24 01:44:39 UTC) #3
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
3 years, 10 months ago (2017-02-24 01:44:40 UTC) #5
Eugene But (OOO till 7-30)
lgtm
3 years, 10 months ago (2017-02-24 01:52:10 UTC) #6
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/2711733007/1
3 years, 10 months ago (2017-02-24 01:52:57 UTC) #8
liaoyuke
lgtm On Thu, Feb 23, 2017 at 5:52 PM commit-bot@chromium.org via codereview.chromium.org <reply@chromiumcodereview-hr.appspotmail.com> wrote: > ...
3 years, 10 months ago (2017-02-24 01:54:15 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 01:54:45 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/55a8e3f7414855960a20135217d3...

Powered by Google App Engine
This is Rietveld 408576698