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

Issue 2712743008: Remove -insertTabWithWebState:atIndex: from TabModel. (Closed)

Created:
3 years, 10 months ago by sdefresne
Modified:
3 years, 9 months ago
CC:
chromium-reviews, marq+watch_chromium.org, 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 -insertTabWithWebState:atIndex: from TabModel. The method -insertTabWithWebState:atIndex: was used by TabModelTest but -insertTabWithURL:referrer:transition:opener:openedByDOM:atIndex:... is enough to implement all the tests, so modify them to use that method. Introduce a new method -insertTabWithNavigationItems:... that is used to introduce a new Tab with history restored from a saved session and use it from tab_restore_service_delegate_impl_ios.mm. BUG=620083, 687207

Patch Set 1 #

Patch Set 2 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -382 lines) Patch
M ios/chrome/browser/sessions/DEPS View 1 chunk +0 lines, -6 lines 0 comments Download
M ios/chrome/browser/sessions/tab_restore_service_delegate_impl_ios.mm View 1 2 chunks +6 lines, -14 lines 0 comments Download
M ios/chrome/browser/tabs/tab.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/tabs/tab_model.h View 1 2 chunks +9 lines, -5 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model.mm View 1 2 chunks +11 lines, -4 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model_observers_bridge.mm View 1 chunk +5 lines, -1 line 0 comments Download
M ios/chrome/browser/tabs/tab_model_unittest.mm View 1 30 chunks +382 lines, -344 lines 0 comments Download
M ios/web/navigation/crw_session_controller_unittest.mm View 1 5 chunks +5 lines, -5 lines 0 comments Download
M ios/web/navigation/navigation_manager_impl.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/net/crw_ssl_status_updater_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 14 (10 generated)
sdefresne
Please take a look.
3 years, 10 months ago (2017-02-24 17:49:52 UTC) #3
sdefresne
rohitrao: ping
3 years, 9 months ago (2017-03-02 03:19:39 UTC) #4
rohitrao (ping after 24h)
At a high level, do we want to be moving away from the webstate-based insert ...
3 years, 9 months ago (2017-03-02 18:28:29 UTC) #13
sdefresne
3 years, 9 months ago (2017-03-02 23:32:58 UTC) #14
Message was sent while issue was closed.
As discussed offline, I'm closing this CL and sending two separates CLs
corresponding to the fix in the observer bridge and to the cleanup of the unit
tests.

Powered by Google App Engine
This is Rietveld 408576698