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

Issue 2810193002: [ObjC ARC] Converts ios/chrome/browser/ui/tab_switcher:tab_switcher to ARC. (Closed)

Created:
3 years, 8 months ago by stkhapugin
Modified:
3 years, 7 months ago
Reviewers:
jif
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/heads/master
Project:
chromium
Visibility:
Public.

Description

[ObjC ARC] Converts ios/chrome/browser/ui/tab_switcher:tab_switcher to ARC. Automatically generated ARCMigrate commit Notable issues: * Replaced 2 instances of replaceOldTabModel:(TabModel**)oldTabModel withTabModel:(TabModel*)newTabModel method with an equivalent construct that does not pass pointers to pointers to objc objects. Feel free to suggest a better way that I can implement in a follow-up CL. * some weak pointer dereferencing replaced with strong pointer dereferencing in blocks * In tab_model_snapshot.mm, added a bridge cast. I'm not sure if this should be a conversion to std::string, because std::stringstream.operator<<(NSString*) can be both. BUG=624363 TEST=None Review-Url: https://codereview.chromium.org/2810193002 Cr-Commit-Position: refs/heads/master@{#468652} Committed: https://chromium.googlesource.com/chromium/src/+/9d30c08f5979bb312459afee2871e74a5b43d094

Patch Set 1 #

Patch Set 2 : cast #

Total comments: 2

Patch Set 3 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -343 lines) Patch
M ios/chrome/browser/ui/tab_switcher/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_button.mm View 2 chunks +6 lines, -4 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_cache.h View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_cache.mm View 6 chunks +33 lines, -22 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm View 1 2 23 chunks +61 lines, -70 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_header_cell.mm View 4 chunks +10 lines, -7 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_header_view.h View 1 chunk +3 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_header_view.mm View 14 chunks +29 lines, -27 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_model.mm View 5 chunks +29 lines, -13 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm View 17 chunks +64 lines, -63 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_collection_view_layout.mm View 2 chunks +6 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_controller.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_controller.mm View 7 chunks +17 lines, -15 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_overlay_view.mm View 14 chunks +52 lines, -61 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_view.mm View 2 chunks +10 lines, -9 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_session_cell_data.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_session_changes.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_tab_strip_placeholder_view.mm View 2 chunks +7 lines, -6 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_transition_context.mm View 7 chunks +12 lines, -19 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_view.h View 1 chunk +4 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_view.mm View 7 chunks +15 lines, -12 lines 0 comments Download

Messages

Total messages: 21 (15 generated)
stkhapugin
PTAL
3 years, 7 months ago (2017-05-02 13:49:44 UTC) #12
sdefresne
drive-by https://codereview.chromium.org/2810193002/diff/20001/ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm File ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm (right): https://codereview.chromium.org/2810193002/diff/20001/ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm#newcode39 ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm:39: ss << (__bridge void*)tab.tabId << std::endl This should ...
3 years, 7 months ago (2017-05-02 14:23:11 UTC) #13
jif
lgtm, just do what sylvain said
3 years, 7 months ago (2017-05-02 14:33:21 UTC) #14
stkhapugin
Thank you! https://codereview.chromium.org/2810193002/diff/20001/ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm File ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm (right): https://codereview.chromium.org/2810193002/diff/20001/ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm#newcode39 ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm:39: ss << (__bridge void*)tab.tabId << std::endl On ...
3 years, 7 months ago (2017-05-02 14:40:29 UTC) #15
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/2810193002/40001
3 years, 7 months ago (2017-05-02 14:41:40 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 16:00:43 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9d30c08f5979bb312459afee2871...

Powered by Google App Engine
This is Rietveld 408576698