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

Issue 2650563002: Pass WebState to NativeAppNavigationController (Closed)

Created:
3 years, 11 months ago by pkl (ping after 24h if needed)
Modified:
3 years, 11 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

Pass WebState to NativeAppNavigationController This is the initial step of getting rid of Tab from NativeAppNavigationController. In the interim, both WebState and Tab are passed and NativeAppNavigationController will prefer the use of WebState over that of Tab whenever possible. BUG=681867 Review-Url: https://codereview.chromium.org/2650563002 Cr-Commit-Position: refs/heads/master@{#446577} Committed: https://chromium.googlesource.com/chromium/src/+/b28df93e8b400bb452521c8e9a21a41de8771df9

Patch Set 1 #

Patch Set 2 : Get NavigationManager from WebState #

Patch Set 3 : mostly indentation #

Patch Set 4 : Add chrome_web_test support #

Total comments: 18

Patch Set 5 : IsLinkNavigation() is now a util function w/ unit tests #

Total comments: 51

Patch Set 6 : addressed another round of comments. #

Patch Set 7 : removed unnecessary DEPS #

Patch Set 8 : fixed import vs. include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -60 lines) Patch
M ios/chrome/browser/native_app_launcher/BUILD.gn View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
M ios/chrome/browser/native_app_launcher/DEPS View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M ios/chrome/browser/native_app_launcher/native_app_navigation_controller.h View 1 2 3 4 1 chunk +12 lines, -3 lines 0 comments Download
M ios/chrome/browser/native_app_launcher/native_app_navigation_controller.mm View 1 2 3 4 5 7 chunks +25 lines, -35 lines 0 comments Download
M ios/chrome/browser/native_app_launcher/native_app_navigation_controller_unittest.mm View 1 4 chunks +10 lines, -18 lines 0 comments Download
A ios/chrome/browser/native_app_launcher/native_app_navigation_util.h View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
A ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm View 1 2 3 4 5 6 7 1 chunk +38 lines, -0 lines 0 comments Download
A ios/chrome/browser/native_app_launcher/native_app_navigation_util_unittest.mm View 1 2 3 4 5 6 7 1 chunk +100 lines, -0 lines 0 comments Download
M ios/chrome/browser/tabs/tab.mm View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
pkl (ping after 24h if needed)
This removed most of the _tab references in NativeAppNavigationController.
3 years, 11 months ago (2017-01-21 01:51:43 UTC) #2
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2650563002/diff/60001/ios/chrome/browser/native_app_launcher/native_app_navigation_controller.mm File ios/chrome/browser/native_app_launcher/native_app_navigation_controller.mm (right): https://codereview.chromium.org/2650563002/diff/60001/ios/chrome/browser/native_app_launcher/native_app_navigation_controller.mm#newcode23 ios/chrome/browser/native_app_launcher/native_app_navigation_controller.mm:23: #include "ios/web/public/web_state/web_state.h" s/include/import https://codereview.chromium.org/2650563002/diff/60001/ios/chrome/browser/native_app_launcher/native_app_navigation_controller.mm#newcode187 ios/chrome/browser/native_app_launcher/native_app_navigation_controller.mm:187: // TODO(pkl): Preferred method ...
3 years, 11 months ago (2017-01-21 02:30:09 UTC) #4
rohitrao (ping after 24h)
lgtm https://codereview.chromium.org/2650563002/diff/60001/ios/chrome/browser/native_app_launcher/native_app_navigation_controller.h File ios/chrome/browser/native_app_launcher/native_app_navigation_controller.h (right): https://codereview.chromium.org/2650563002/diff/60001/ios/chrome/browser/native_app_launcher/native_app_navigation_controller.h#newcode30 ios/chrome/browser/native_app_launcher/native_app_navigation_controller.h:30: - (instancetype)init NS_UNAVAILABLE; We generally put the unavailable ...
3 years, 11 months ago (2017-01-24 14:24:56 UTC) #8
pkl (ping after 24h if needed)
Addressed comments from eugenebut & rohitrao. Please let me know if there's a better way ...
3 years, 11 months ago (2017-01-26 00:30:17 UTC) #9
Eugene But (OOO till 7-30)
Thanks for the tests! lgtm https://codereview.chromium.org/2650563002/diff/80001/ios/chrome/browser/native_app_launcher/BUILD.gn File ios/chrome/browser/native_app_launcher/BUILD.gn (right): https://codereview.chromium.org/2650563002/diff/80001/ios/chrome/browser/native_app_launcher/BUILD.gn#newcode57 ios/chrome/browser/native_app_launcher/BUILD.gn:57: "native_app_navigation_utils.h", Optional nit: util. ...
3 years, 11 months ago (2017-01-26 01:04:39 UTC) #10
pkl (ping after 24h if needed)
Thank you! Addressed more comments. https://codereview.chromium.org/2650563002/diff/80001/ios/chrome/browser/native_app_launcher/BUILD.gn File ios/chrome/browser/native_app_launcher/BUILD.gn (right): https://codereview.chromium.org/2650563002/diff/80001/ios/chrome/browser/native_app_launcher/BUILD.gn#newcode57 ios/chrome/browser/native_app_launcher/BUILD.gn:57: "native_app_navigation_utils.h", On 2017/01/26 01:04:38, ...
3 years, 11 months ago (2017-01-26 02:26:29 UTC) #11
Eugene But (OOO till 7-30)
Still lgtm! Replaying since you asked questions. https://codereview.chromium.org/2650563002/diff/80001/ios/chrome/browser/native_app_launcher/native_app_navigation_controller.mm File ios/chrome/browser/native_app_launcher/native_app_navigation_controller.mm (right): https://codereview.chromium.org/2650563002/diff/80001/ios/chrome/browser/native_app_launcher/native_app_navigation_controller.mm#newcode22 ios/chrome/browser/native_app_launcher/native_app_navigation_controller.mm:22: #include "ios/web/public/web_state/web_state.h" ...
3 years, 11 months ago (2017-01-26 03:10:02 UTC) #12
pkl (ping after 24h if needed)
Thanks! Submitting. https://codereview.chromium.org/2650563002/diff/80001/ios/chrome/browser/native_app_launcher/native_app_navigation_utils.mm File ios/chrome/browser/native_app_launcher/native_app_navigation_utils.mm (right): https://codereview.chromium.org/2650563002/diff/80001/ios/chrome/browser/native_app_launcher/native_app_navigation_utils.mm#newcode10 ios/chrome/browser/native_app_launcher/native_app_navigation_utils.mm:10: #include "ios/web/public/web_state/web_state.h" On 2017/01/26 03:10:02, Eugene But ...
3 years, 11 months ago (2017-01-26 19:44:24 UTC) #13
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/2650563002/140001
3 years, 11 months ago (2017-01-26 19:47:39 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/300469)
3 years, 11 months ago (2017-01-26 22:27:26 UTC) #18
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/2650563002/140001
3 years, 11 months ago (2017-01-27 01:54:09 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-27 03:39:57 UTC) #23
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/b28df93e8b400bb452521c8e9a21...

Powered by Google App Engine
This is Rietveld 408576698