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

Issue 2724073005: Remove NavigationManager::GetPreviousItem(). (Closed)

Created:
3 years, 9 months ago by sdefresne
Modified:
3 years, 9 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

Remove NavigationManager::GetPreviousItem(). The only location interested in the previous navigation item was a callback that received the index of the item via its parameter so use the parameter to access the navigation item and remove the obsolete method. Add some helper methods to CRWSessionController to avoid creating and then destroying std::vector<> everytime the list of navigation items was queried. BUG=661983 Review-Url: https://codereview.chromium.org/2724073005 Cr-Commit-Position: refs/heads/master@{#454450} Committed: https://chromium.googlesource.com/chromium/src/+/573bd7b3152aba99ff74ad02ae1aa846ad32a448

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -23 lines) Patch
M ios/chrome/browser/tabs/tab.mm View 1 2 chunks +9 lines, -1 line 0 comments Download
M ios/chrome/browser/tabs/tab_model.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/tabs/tab_model.mm View 1 1 chunk +2 lines, -3 lines 0 comments Download
M ios/web/navigation/crw_session_controller.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ios/web/navigation/crw_session_controller.mm View 1 2 chunks +14 lines, -4 lines 0 comments Download
M ios/web/navigation/navigation_manager_impl.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ios/web/navigation/navigation_manager_impl.mm View 1 5 chunks +6 lines, -12 lines 0 comments Download
M ios/web/navigation/navigation_manager_impl_unittest.mm View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 13 (9 generated)
sdefresne
Please take a look.
3 years, 9 months ago (2017-03-02 23:24:59 UTC) #4
Eugene But (OOO till 7-30)
lgtm https://codereview.chromium.org/2724073005/diff/1/ios/web/navigation/crw_session_controller.mm File ios/web/navigation/crw_session_controller.mm (right): https://codereview.chromium.org/2724073005/diff/1/ios/web/navigation/crw_session_controller.mm#newcode224 ios/web/navigation/crw_session_controller.mm:224: return [self.entries count]; nit: self.entries.count |count| is a ...
3 years, 9 months ago (2017-03-02 23:32:48 UTC) #7
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/2724073005/20001
3 years, 9 months ago (2017-03-02 23:52:47 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 00:13:40 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/573bd7b3152aba99ff74ad02ae1a...

Powered by Google App Engine
This is Rietveld 408576698