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

Issue 2731553005: Introduced StoreKitTabHelper class (Closed)

Created:
3 years, 9 months ago by pkl (ping after 24h if needed)
Modified:
3 years, 9 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduced StoreKitTabHelper class Removed _tab from NativeAppNavigationController as everything can be obtained from WebState. BUG=684063 Review-Url: https://codereview.chromium.org/2731553005 Cr-Commit-Position: refs/heads/master@{#455460} Committed: https://chromium.googlesource.com/chromium/src/+/d6e73e57a224c74a169abbcd8f2507fd1a5daa7b

Patch Set 1 #

Patch Set 2 : removed storeKitLauncher_ ivar from Tab. #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : fixed unit tests in ITunesLinksObserver #

Patch Set 6 : added unit tests #

Patch Set 7 : line break for 80 columns #

Total comments: 21

Patch Set 8 : addressed sdefresne's comments #

Patch Set 9 : removed requestContextGetter from NativeAppNavigationController initializer #

Patch Set 10 : fixed variable naming #

Total comments: 4

Patch Set 11 : rebased and address sdefresne's 2nd round comments #

Total comments: 14

Patch Set 12 : addressed rohitrao's comments and removed more unneeded code #

Patch Set 13 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -119 lines) Patch
M ios/chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M ios/chrome/browser/itunes_links/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/itunes_links/itunes_links_observer.mm View 1 2 3 4 5 6 7 8 9 4 chunks +13 lines, -12 lines 2 comments Download
M ios/chrome/browser/itunes_links/itunes_links_observer_unittest.mm View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ios/chrome/browser/native_app_launcher/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/native_app_launcher/native_app_navigation_controller.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -11 lines 0 comments Download
M ios/chrome/browser/native_app_launcher/native_app_navigation_controller.mm View 1 2 3 4 5 6 7 8 9 10 5 chunks +13 lines, -20 lines 0 comments Download
M ios/chrome/browser/native_app_launcher/native_app_navigation_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -4 lines 0 comments Download
A + ios/chrome/browser/store_kit/BUILD.gn View 1 2 3 4 5 1 chunk +10 lines, -12 lines 0 comments Download
A + ios/chrome/browser/store_kit/store_kit_launcher.h View 2 chunks +3 lines, -3 lines 0 comments Download
A ios/chrome/browser/store_kit/store_kit_tab_helper.h View 1 2 3 4 5 6 7 1 chunk +31 lines, -0 lines 0 comments Download
A ios/chrome/browser/store_kit/store_kit_tab_helper.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +27 lines, -0 lines 0 comments Download
A ios/chrome/browser/store_kit/store_kit_tab_helper_unittest.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +34 lines, -0 lines 0 comments Download
D ios/chrome/browser/storekit_launcher.h View 1 chunk +0 lines, -19 lines 0 comments Download
M ios/chrome/browser/tabs/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/tabs/tab.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +0 lines, -6 lines 0 comments Download
M ios/chrome/browser/tabs/tab.mm View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +11 lines, -22 lines 0 comments Download
M ios/chrome/browser/ui/BUILD.gn View 4 chunks +4 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/browser_view_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/downloads/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/downloads/download_manager_controller.mm View 2 chunks +1 line, -2 lines 0 comments Download
M ios/chrome/browser/ui/downloads/download_manager_controller_unittest.mm View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/settings/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/settings/native_apps_collection_view_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (7 generated)
pkl (ping after 24h if needed)
I introduced a new directory ios/chrome/browser/store_kit/ and moved storekit_launch.h into it. This created quite a ...
3 years, 9 months ago (2017-03-04 02:11:37 UTC) #2
sdefresne
https://codereview.chromium.org/2731553005/diff/110001/ios/chrome/browser/itunes_links/BUILD.gn File ios/chrome/browser/itunes_links/BUILD.gn (right): https://codereview.chromium.org/2731553005/diff/110001/ios/chrome/browser/itunes_links/BUILD.gn#newcode13 ios/chrome/browser/itunes_links/BUILD.gn:13: "//ios/chrome/browser", I think you can remove this deps (//ios/chrome/browser). ...
3 years, 9 months ago (2017-03-06 19:44:04 UTC) #3
pkl (ping after 24h if needed)
sdefresne: Thanks! I've made the changes as you've suggested. I also noticed that requestContextGetter param ...
3 years, 9 months ago (2017-03-07 01:17:54 UTC) #4
sdefresne
lgtm https://codereview.chromium.org/2731553005/diff/170001/ios/chrome/browser/store_kit/store_kit_tab_helper.mm File ios/chrome/browser/store_kit/store_kit_tab_helper.mm (right): https://codereview.chromium.org/2731553005/diff/170001/ios/chrome/browser/store_kit/store_kit_tab_helper.mm#newcode15 ios/chrome/browser/store_kit/store_kit_tab_helper.mm:15: StoreKitTabHelper::~StoreKitTabHelper() = default; nit: Can you use "{}" ...
3 years, 9 months ago (2017-03-07 01:43:26 UTC) #5
pkl (ping after 24h if needed)
Thank you. Address 2nd round of comments. https://codereview.chromium.org/2731553005/diff/170001/ios/chrome/browser/store_kit/store_kit_tab_helper.mm File ios/chrome/browser/store_kit/store_kit_tab_helper.mm (right): https://codereview.chromium.org/2731553005/diff/170001/ios/chrome/browser/store_kit/store_kit_tab_helper.mm#newcode15 ios/chrome/browser/store_kit/store_kit_tab_helper.mm:15: StoreKitTabHelper::~StoreKitTabHelper() = ...
3 years, 9 months ago (2017-03-07 02:10:02 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/2731553005/190001
3 years, 9 months ago (2017-03-07 02:10:50 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/379141)
3 years, 9 months ago (2017-03-07 05:35:47 UTC) #11
rohitrao (ping after 24h)
https://codereview.chromium.org/2731553005/diff/190001/ios/chrome/browser/BUILD.gn File ios/chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2731553005/diff/190001/ios/chrome/browser/BUILD.gn#newcode103 ios/chrome/browser/BUILD.gn:103: "//ios/chrome/browser/store_kit", Does this target actually need to depend on ...
3 years, 9 months ago (2017-03-07 13:38:08 UTC) #12
sdefresne
https://codereview.chromium.org/2731553005/diff/190001/ios/chrome/browser/tabs/tab.mm File ios/chrome/browser/tabs/tab.mm (right): https://codereview.chromium.org/2731553005/diff/190001/ios/chrome/browser/tabs/tab.mm#newcode888 ios/chrome/browser/tabs/tab.mm:888: return tabHelper ? tabHelper->GetLauncher() : nil; On 2017/03/07 13:38:07, ...
3 years, 9 months ago (2017-03-07 17:11:17 UTC) #13
pkl (ping after 24h if needed)
Removed more unnecessary code. sdefresne, rohitrao: Do you want to take another look before I ...
3 years, 9 months ago (2017-03-07 21:24:46 UTC) #14
sdefresne
lgtm https://codereview.chromium.org/2731553005/diff/230001/ios/chrome/browser/itunes_links/itunes_links_observer.mm File ios/chrome/browser/itunes_links/itunes_links_observer.mm (right): https://codereview.chromium.org/2731553005/diff/230001/ios/chrome/browser/itunes_links/itunes_links_observer.mm#newcode39 ios/chrome/browser/itunes_links/itunes_links_observer.mm:39: new web::WebStateObserverBridge(webState, self)); optional: can you change this ...
3 years, 9 months ago (2017-03-08 02:53:14 UTC) #15
pkl (ping after 24h if needed)
https://codereview.chromium.org/2731553005/diff/230001/ios/chrome/browser/itunes_links/itunes_links_observer.mm File ios/chrome/browser/itunes_links/itunes_links_observer.mm (right): https://codereview.chromium.org/2731553005/diff/230001/ios/chrome/browser/itunes_links/itunes_links_observer.mm#newcode39 ios/chrome/browser/itunes_links/itunes_links_observer.mm:39: new web::WebStateObserverBridge(webState, self)); On 2017/03/08 02:53:14, sdefresne wrote: > ...
3 years, 9 months ago (2017-03-08 14:27:41 UTC) #16
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/2731553005/230001
3 years, 9 months ago (2017-03-08 14:27:55 UTC) #18
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 15:57:44 UTC) #21
Message was sent while issue was closed.
Committed patchset #13 (id:230001) as
https://chromium.googlesource.com/chromium/src/+/d6e73e57a224c74a169abbcd8f25...

Powered by Google App Engine
This is Rietveld 408576698