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

Issue 2806153004: Convert main NTP panel to UIViewController. (Closed)

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

Description

Convert main NTP panel to UIViewController. To ease modernizing the NTP only the internal panels are being converted to UIViewControllers. This means all the plumbing between the BrowserViewController and the internal NTP panels (WebController, NTP) hierarchy is skipped. While normally the logic to push and pop a view controller would be owned by a coordinator, in this case the old NTP controller adds and removes child view controllers itself when a load is initiated, and when WebController calls -willBeDismissed. BUG=708319 Review-Url: https://codereview.chromium.org/2806153004 Cr-Commit-Position: refs/heads/master@{#464850} Committed: https://chromium.googlesource.com/chromium/src/+/1f6e1cbafd32c584fe6197eaefd4edd2f08e1024

Patch Set 1 #

Patch Set 2 : Add Comment #

Patch Set 3 : Comment typo #

Total comments: 8

Patch Set 4 : Address comments #

Total comments: 2

Patch Set 5 : Update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -47 lines) Patch
M ios/chrome/browser/ui/browser_view_controller.mm View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/ui/ntp/google_landing_controller.h View 1 chunk +4 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/ntp/google_landing_controller.mm View 1 2 3 13 chunks +35 lines, -34 lines 0 comments Download
M ios/chrome/browser/ui/ntp/new_tab_page_controller.h View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/ntp/new_tab_page_controller.mm View 1 2 3 4 9 chunks +37 lines, -4 lines 0 comments Download
M ios/clean/chrome/browser/ui/ntp/ntp_home_coordinator.mm View 1 chunk +2 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (20 generated)
justincohen
Thoughts?
3 years, 8 months ago (2017-04-10 18:43:07 UTC) #6
rohitrao (ping after 24h)
https://codereview.chromium.org/2806153004/diff/40001/ios/chrome/browser/ui/ntp/google_landing_controller.mm File ios/chrome/browser/ui/ntp/google_landing_controller.mm (right): https://codereview.chromium.org/2806153004/diff/40001/ios/chrome/browser/ui/ntp/google_landing_controller.mm#newcode408 ios/chrome/browser/ui/ntp/google_landing_controller.mm:408: [(GoogleLandingView*)self.view setFrameDelegate:self]; You can redeclare the |view| property to ...
3 years, 8 months ago (2017-04-12 12:45:09 UTC) #9
justincohen
ptal https://codereview.chromium.org/2806153004/diff/40001/ios/chrome/browser/ui/ntp/google_landing_controller.mm File ios/chrome/browser/ui/ntp/google_landing_controller.mm (right): https://codereview.chromium.org/2806153004/diff/40001/ios/chrome/browser/ui/ntp/google_landing_controller.mm#newcode408 ios/chrome/browser/ui/ntp/google_landing_controller.mm:408: [(GoogleLandingView*)self.view setFrameDelegate:self]; On 2017/04/12 12:45:09, rohitrao wrote: > ...
3 years, 8 months ago (2017-04-12 14:23:12 UTC) #12
rohitrao (ping after 24h)
lgtm https://codereview.chromium.org/2806153004/diff/60001/ios/chrome/browser/ui/ntp/new_tab_page_controller.mm File ios/chrome/browser/ui/ntp/new_tab_page_controller.mm (right): https://codereview.chromium.org/2806153004/diff/60001/ios/chrome/browser/ui/ntp/new_tab_page_controller.mm#newcode296 ios/chrome/browser/ui/ntp/new_tab_page_controller.mm:296: - (void)willBeDismissed { Explain that this is called ...
3 years, 8 months ago (2017-04-13 12:48:52 UTC) #15
justincohen
I will land this after M59 branches. https://codereview.chromium.org/2806153004/diff/60001/ios/chrome/browser/ui/ntp/new_tab_page_controller.mm File ios/chrome/browser/ui/ntp/new_tab_page_controller.mm (right): https://codereview.chromium.org/2806153004/diff/60001/ios/chrome/browser/ui/ntp/new_tab_page_controller.mm#newcode296 ios/chrome/browser/ui/ntp/new_tab_page_controller.mm:296: - (void)willBeDismissed ...
3 years, 8 months ago (2017-04-13 13:58:02 UTC) #19
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/2806153004/80001
3 years, 8 months ago (2017-04-15 01:36:50 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-15 01:49:16 UTC) #27
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/1f6e1cbafd32c584fe6197eaefd4...

Powered by Google App Engine
This is Rietveld 408576698