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

Issue 2709013002: [ios clean] Rename removeChildViewController -> detachChildViewController (Closed)

Created:
3 years, 10 months ago by justincohen
Modified:
3 years, 10 months ago
CC:
chromium-reviews, marq+scrutinize_chromium.org, lpromero+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios clean] Rename removeChildViewController -> detachChildViewController -removeChildViewController is used internally by UIKit. Without this change, calling removeChildViewController's leads to an infinite loop. BUG=695013 Review-Url: https://codereview.chromium.org/2709013002 Cr-Commit-Position: refs/heads/master@{#452024} Committed: https://chromium.googlesource.com/chromium/src/+/8c112333b3a0eff529b84d80437c3d27c519142f

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename method #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -9 lines) Patch
M ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M ios/clean/chrome/browser/ui/tab_strip/tab_strip_container_view_controller.mm View 1 4 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
justincohen
Can we add some OWNERS to clean?
3 years, 10 months ago (2017-02-21 21:25:05 UTC) #2
rohitrao (ping after 24h)
lgtm but please wait for one other reviewer We should document the reason for this ...
3 years, 10 months ago (2017-02-21 23:17:59 UTC) #4
edchin
The name -removeChildViewController sounds like it would be a UIKit method, but the UIKit method ...
3 years, 10 months ago (2017-02-21 23:28:16 UTC) #5
rohitrao (ping after 24h)
The problem is that UIViewController has a (undocumented) method called removeChildViewController: You can test this ...
3 years, 10 months ago (2017-02-21 23:34:57 UTC) #6
edchin
Ah yes, I now understand. This method is undocumented. However, let me play the devil's ...
3 years, 10 months ago (2017-02-21 23:57:49 UTC) #7
justincohen
Updated description. This change is required due to an infinite loop caused by us using ...
3 years, 10 months ago (2017-02-22 00:13:56 UTC) #9
edchin
https://codereview.chromium.org/2709013002/diff/1/ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm File ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm (right): https://codereview.chromium.org/2709013002/diff/1/ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm#newcode37 ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm:37: - (void)removeChildViewControllerFromParent:(UIViewController*)viewController; On 2017/02/21 23:28:16, edchin wrote: > This ...
3 years, 10 months ago (2017-02-22 00:34:46 UTC) #10
edchin
Forgot to lgtm in my last comment.
3 years, 10 months ago (2017-02-22 00:36:08 UTC) #11
rohitrao (ping after 24h)
> I suggest namespacing with a prefix. -(void)cr_removeChildViewController: Namespacing will imply that the method is ...
3 years, 10 months ago (2017-02-22 00:41:34 UTC) #12
marq (ping after 24h)
LGTM modulo a different method name. https://codereview.chromium.org/2709013002/diff/1/ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm File ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm (right): https://codereview.chromium.org/2709013002/diff/1/ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm#newcode37 ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm:37: - (void)removeChildViewControllerFromParent:(UIViewController*)viewController; On ...
3 years, 10 months ago (2017-02-22 09:13:44 UTC) #13
marq (ping after 24h)
On 2017/02/22 09:13:44, marq wrote: > LGTM modulo a different method name. > > https://codereview.chromium.org/2709013002/diff/1/ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm ...
3 years, 10 months ago (2017-02-22 09:14:00 UTC) #14
justincohen
I'll create a tracking bug for a PRESUBMIT followup. https://codereview.chromium.org/2709013002/diff/1/ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm File ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm (right): https://codereview.chromium.org/2709013002/diff/1/ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm#newcode37 ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm:37: ...
3 years, 10 months ago (2017-02-22 12:48:35 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/2709013002/20001
3 years, 10 months ago (2017-02-22 12:49:02 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/157857) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-22 12:50:35 UTC) #22
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/2709013002/40001
3 years, 10 months ago (2017-02-22 12:59:17 UTC) #25
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 13:14:33 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8c112333b3a0eff529b84d80437c...

Powered by Google App Engine
This is Rietveld 408576698