New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 717974 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Task

Blocking:
issue 700375



Sign in to add a comment

Refactor NTP

Project Member Reported by gambard@chromium.org, May 3 2017

Issue description

Refactor the NTP to make the use of Content Suggestions as NTP easier.

The GoogleLandingViewController is more than 1500 lines of code. The first step is to move as many functions as possible to helpers.
 
Project Member

Comment 1 by bugdroid1@chromium.org, May 4 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/808626a965952b3b50656b1fc57f995964506ec3

commit 808626a965952b3b50656b1fc57f995964506ec3
Author: gambard <gambard@chromium.org>
Date: Thu May 04 15:28:03 2017

Change the constraint to anchor constraints in GoogleLandingController

The anchor constraints syntax is clearer than the old NSLayoutConstraint syntax.

BUG= 717974 

Review-Url: https://codereview.chromium.org/2860713002
Cr-Commit-Position: refs/heads/master@{#469343}

[modify] https://crrev.com/808626a965952b3b50656b1fc57f995964506ec3/ios/chrome/browser/ui/ntp/google_landing_view_controller.mm

Project Member

Comment 2 by bugdroid1@chromium.org, May 9 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6fc6c3d5071745fe9d37f94a772b1e70231f96ee

commit 6fc6c3d5071745fe9d37f94a772b1e70231f96ee
Author: gambard <gambard@chromium.org>
Date: Tue May 09 11:58:48 2017

Split the NTP in two targets to use it in ContentSuggestions

The ntp_internal is using some components of ContentSuggestions. In order to
add the header view in Content Suggestions, the files have to be moved to a
different target.

BUG= 717974 

Review-Url: https://codereview.chromium.org/2854393005
Cr-Commit-Position: refs/heads/master@{#470287}

[modify] https://crrev.com/6fc6c3d5071745fe9d37f94a772b1e70231f96ee/ios/chrome/browser/ui/ntp/BUILD.gn

Project Member

Comment 5 by bugdroid1@chromium.org, Jun 21 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b684b8955e632634348cbbd2f829df3b727bc259

commit b684b8955e632634348cbbd2f829df3b727bc259
Author: gambard <gambard@chromium.org>
Date: Wed Jun 21 13:06:31 2017

Remove IsOffTheRecord from GoogleLandingConsumer

This CL removes the IsOffTheRecord property of the GoogleLandingVC as it can
only be presented in OnTheRecord navigation.

BUG= 717974 

Change-Id: I8cb60f8c6e2747e61dc1915410749de8f9c1905f
Reviewed-on: https://chromium-review.googlesource.com/536954
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#481186}
[modify] https://crrev.com/b684b8955e632634348cbbd2f829df3b727bc259/ios/chrome/browser/ui/ntp/google_landing_consumer.h
[modify] https://crrev.com/b684b8955e632634348cbbd2f829df3b727bc259/ios/chrome/browser/ui/ntp/google_landing_mediator.mm
[modify] https://crrev.com/b684b8955e632634348cbbd2f829df3b727bc259/ios/chrome/browser/ui/ntp/google_landing_view_controller.mm

Labels: -Type-Bug Type-Task
Status: Fixed (was: Assigned)

Sign in to add a comment