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

Issue 9358031: Added new adaptive "Suggest" tab on the New Tab Page, behing the flag, for the experiments. (Closed)

Created:
8 years, 10 months ago by GeorgeY
Modified:
6 years, 3 months ago
Reviewers:
Dan Beam, Evan Stade
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

Added new adaptive "Suggest" tab on the New Tab Page, behing the flag, for the experiments. To experiment with presentation edit chrome/browser/resources/ntp4/suggested_page.css|.js To experiment with data edit chrome/browser/ui/webui/ntp/suggested_page_handler.h|.cc BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124340

Patch Set 1 #

Patch Set 2 : Fix clearing of the data #

Patch Set 3 : remove extra line #

Total comments: 55

Patch Set 4 : Removed "most visited" references #

Total comments: 8

Patch Set 5 : Adressed the comments. #

Total comments: 4

Patch Set 6 : adressed 2 out of 3 comments #

Patch Set 7 : added dynamic loading of the JS and CSS #

Total comments: 23

Patch Set 8 : Addressed comments #

Total comments: 6

Patch Set 9 : Adressed comments 2 #

Total comments: 2

Patch Set 10 : #

Patch Set 11 : Moved suggestions before apps, fixed already present js bug, alphabetised .css #

Total comments: 3

Patch Set 12 : Made apps page to add new pages correctly #

Patch Set 13 : Simplified code to add app pages in succession #

Patch Set 14 : put the suggested before apps page #

Patch Set 15 : Fixed bug in card_slider.js which prevented correct card be selected in dome cases #

Total comments: 80

Patch Set 16 : Addressed Dan's comments #

Total comments: 13

Patch Set 17 : Addressed Dan's comments #

Total comments: 4

Patch Set 18 : adressed latest coments #

Patch Set 19 : fix the unit-tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+940 lines, -6 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/page_list_view.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +29 lines, -2 lines 0 comments Download
A chrome/browser/resources/ntp4/suggestions_page.css View 1 2 3 4 5 6 7 8 9 10 1 chunk +105 lines, -0 lines 0 comments Download
A chrome/browser/resources/ntp4/suggestions_page.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +419 lines, -0 lines 0 comments Download
M chrome/browser/resources/shared/js/cr/ui/card_slider.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_page_handler.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_page_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +49 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/ntp/suggestions_page_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +97 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/ntp/suggestions_page_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +178 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
GeorgeY
This is the experimental page behind the flag that we're going to experiment with.
8 years, 10 months ago (2012-02-09 00:37:25 UTC) #1
Dan Beam
drive by essay https://chromiumcodereview.appspot.com/9358031/diff/4001/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): https://chromiumcodereview.appspot.com/9358031/diff/4001/chrome/browser/resources/ntp4/new_tab.js#newcode431 chrome/browser/resources/ntp4/new_tab.js:431: function setSuggestedPages(data, hasBlacklistedUrls) { unused param ...
8 years, 10 months ago (2012-02-09 01:43:06 UTC) #2
Evan Stade
it seems the UI is exactly the same as most visited. Can you instead refactor ...
8 years, 10 months ago (2012-02-09 01:54:23 UTC) #3
GeorgeY
We want to experiment with both UI presentation and data sources (I actually have a ...
8 years, 10 months ago (2012-02-10 00:00:35 UTC) #4
Evan Stade
https://chromiumcodereview.appspot.com/9358031/diff/6001/chrome/browser/resources/ntp4/suggested_page.js File chrome/browser/resources/ntp4/suggested_page.js (right): https://chromiumcodereview.appspot.com/9358031/diff/6001/chrome/browser/resources/ntp4/suggested_page.js#newcode1 chrome/browser/resources/ntp4/suggested_page.js:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
8 years, 10 months ago (2012-02-11 01:56:05 UTC) #5
GeorgeY
https://chromiumcodereview.appspot.com/9358031/diff/6001/chrome/browser/resources/ntp4/suggested_page.js File chrome/browser/resources/ntp4/suggested_page.js (right): https://chromiumcodereview.appspot.com/9358031/diff/6001/chrome/browser/resources/ntp4/suggested_page.js#newcode1 chrome/browser/resources/ntp4/suggested_page.js:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
8 years, 10 months ago (2012-02-17 01:09:40 UTC) #6
Evan Stade
http://codereview.chromium.org/9358031/diff/16001/chrome/browser/resources/ntp4/new_tab.html File chrome/browser/resources/ntp4/new_tab.html (right): http://codereview.chromium.org/9358031/diff/16001/chrome/browser/resources/ntp4/new_tab.html#newcode29 chrome/browser/resources/ntp4/new_tab.html:29: <link rel="stylesheet" href="chrome://newtab/suggestions_page.css"> do the same thing for this ...
8 years, 10 months ago (2012-02-17 20:07:35 UTC) #7
Evan Stade
http://codereview.chromium.org/9358031/diff/16001/chrome/browser/resources/ntp4/new_tab.html File chrome/browser/resources/ntp4/new_tab.html (right): http://codereview.chromium.org/9358031/diff/16001/chrome/browser/resources/ntp4/new_tab.html#newcode29 chrome/browser/resources/ntp4/new_tab.html:29: <link rel="stylesheet" href="chrome://newtab/suggestions_page.css"> On 2012/02/17 20:07:35, Evan Stade wrote: ...
8 years, 10 months ago (2012-02-17 20:08:14 UTC) #8
GeorgeY
http://codereview.chromium.org/9358031/diff/16001/chrome/browser/resources/ntp4/new_tab.html File chrome/browser/resources/ntp4/new_tab.html (right): http://codereview.chromium.org/9358031/diff/16001/chrome/browser/resources/ntp4/new_tab.html#newcode29 chrome/browser/resources/ntp4/new_tab.html:29: <link rel="stylesheet" href="chrome://newtab/suggestions_page.css"> On 2012/02/17 20:08:14, Evan Stade wrote: ...
8 years, 10 months ago (2012-02-21 23:32:23 UTC) #9
Evan Stade
is there really no crbug to track this? if not, please file one. http://codereview.chromium.org/9358031/diff/16001/chrome/browser/resources/ntp4/new_tab.html File ...
8 years, 10 months ago (2012-02-23 02:10:20 UTC) #10
GeorgeY
http://codereview.chromium.org/9358031/diff/16001/chrome/browser/resources/ntp4/new_tab.html File chrome/browser/resources/ntp4/new_tab.html (right): http://codereview.chromium.org/9358031/diff/16001/chrome/browser/resources/ntp4/new_tab.html#newcode29 chrome/browser/resources/ntp4/new_tab.html:29: <link rel="stylesheet" href="chrome://newtab/suggestions_page.css"> On 2012/02/23 02:10:20, Evan Stade wrote: ...
8 years, 10 months ago (2012-02-24 01:52:06 UTC) #11
Evan Stade
is there really no crbug to track this? if not, please file one. https://chromiumcodereview.appspot.com/9358031/diff/16001/chrome/browser/resources/ntp4/page_list_view.js File ...
8 years, 10 months ago (2012-02-24 02:11:36 UTC) #12
GeorgeY
https://chromiumcodereview.appspot.com/9358031/diff/16001/chrome/browser/resources/ntp4/page_list_view.js File chrome/browser/resources/ntp4/page_list_view.js (right): https://chromiumcodereview.appspot.com/9358031/diff/16001/chrome/browser/resources/ntp4/page_list_view.js#newcode378 chrome/browser/resources/ntp4/page_list_view.js:378: this.appendTilePage(new ntp4.AppsPage(), On 2012/02/24 02:11:36, Evan Stade wrote: > ...
8 years, 10 months ago (2012-02-24 21:02:43 UTC) #13
Evan Stade
http://codereview.chromium.org/9358031/diff/31001/chrome/browser/resources/ntp4/page_list_view.js File chrome/browser/resources/ntp4/page_list_view.js (right): http://codereview.chromium.org/9358031/diff/31001/chrome/browser/resources/ntp4/page_list_view.js#newcode391 chrome/browser/resources/ntp4/page_list_view.js:391: this.appendTilePage(new ntp4.AppsPage(), this is still just appending the new ...
8 years, 10 months ago (2012-02-24 22:49:45 UTC) #14
GeorgeY
http://codereview.chromium.org/9358031/diff/31001/chrome/browser/resources/ntp4/page_list_view.js File chrome/browser/resources/ntp4/page_list_view.js (right): http://codereview.chromium.org/9358031/diff/31001/chrome/browser/resources/ntp4/page_list_view.js#newcode391 chrome/browser/resources/ntp4/page_list_view.js:391: this.appendTilePage(new ntp4.AppsPage(), On 2012/02/24 22:49:45, Evan Stade wrote: > ...
8 years, 10 months ago (2012-02-24 23:14:19 UTC) #15
Evan Stade
http://codereview.chromium.org/9358031/diff/32001/chrome/browser/resources/ntp4/page_list_view.js File chrome/browser/resources/ntp4/page_list_view.js (right): http://codereview.chromium.org/9358031/diff/32001/chrome/browser/resources/ntp4/page_list_view.js#newcode206 chrome/browser/resources/ntp4/page_list_view.js:206: if (typeof ntp4.SuggestionsPage != 'undefined' && this is a ...
8 years, 10 months ago (2012-02-24 23:28:01 UTC) #16
GeorgeY
http://codereview.chromium.org/9358031/diff/32001/chrome/browser/resources/ntp4/page_list_view.js File chrome/browser/resources/ntp4/page_list_view.js (right): http://codereview.chromium.org/9358031/diff/32001/chrome/browser/resources/ntp4/page_list_view.js#newcode206 chrome/browser/resources/ntp4/page_list_view.js:206: if (typeof ntp4.SuggestionsPage != 'undefined' && On 2012/02/24 23:28:01, ...
8 years, 10 months ago (2012-02-25 01:30:54 UTC) #17
Evan Stade
On 2012/02/25 01:30:54, GeorgeY wrote: > http://codereview.chromium.org/9358031/diff/32001/chrome/browser/resources/ntp4/page_list_view.js > File chrome/browser/resources/ntp4/page_list_view.js (right): > > http://codereview.chromium.org/9358031/diff/32001/chrome/browser/resources/ntp4/page_list_view.js#newcode206 > ...
8 years, 10 months ago (2012-02-27 19:19:38 UTC) #18
GeorgeY
On 2012/02/27 19:19:38, Evan Stade wrote: > On 2012/02/25 01:30:54, GeorgeY wrote: > > > ...
8 years, 9 months ago (2012-02-28 18:47:48 UTC) #19
Dan Beam
https://chromiumcodereview.appspot.com/9358031/diff/32001/chrome/browser/resources/ntp4/suggestions_page.js File chrome/browser/resources/ntp4/suggestions_page.js (right): https://chromiumcodereview.appspot.com/9358031/diff/32001/chrome/browser/resources/ntp4/suggestions_page.js#newcode424 chrome/browser/resources/ntp4/suggestions_page.js:424: var localStrings = new LocalStrings; why no parens here ...
8 years, 9 months ago (2012-02-28 20:14:23 UTC) #20
GeorgeY
Please finish the review - I addressed the comments. https://chromiumcodereview.appspot.com/9358031/diff/45001/chrome/browser/resources/ntp4/new_tab.html File chrome/browser/resources/ntp4/new_tab.html (right): https://chromiumcodereview.appspot.com/9358031/diff/45001/chrome/browser/resources/ntp4/new_tab.html#newcode29 chrome/browser/resources/ntp4/new_tab.html:29: ...
8 years, 9 months ago (2012-02-28 21:17:42 UTC) #21
Evan Stade
lgtm
8 years, 9 months ago (2012-02-28 22:25:34 UTC) #22
Dan Beam
https://chromiumcodereview.appspot.com/9358031/diff/45001/chrome/browser/resources/ntp4/new_tab.html File chrome/browser/resources/ntp4/new_tab.html (right): https://chromiumcodereview.appspot.com/9358031/diff/45001/chrome/browser/resources/ntp4/new_tab.html#newcode29 chrome/browser/resources/ntp4/new_tab.html:29: <link rel="stylesheet" href="chrome://newtab/suggestions_page.css"> On 2012/02/28 21:17:42, GeorgeY wrote: > ...
8 years, 9 months ago (2012-02-28 22:30:12 UTC) #23
Dan Beam
https://chromiumcodereview.appspot.com/9358031/diff/49002/chrome/browser/resources/shared/js/cr/ui/card_slider.js File chrome/browser/resources/shared/js/cr/ui/card_slider.js (right): https://chromiumcodereview.appspot.com/9358031/diff/49002/chrome/browser/resources/shared/js/cr/ui/card_slider.js#newcode442 chrome/browser/resources/shared/js/cr/ui/card_slider.js:442: selectCard: function(newCardIndex, opt_animate, opt_dontNotify, btw, you should probably be ...
8 years, 9 months ago (2012-02-28 22:59:22 UTC) #24
Dan Beam
https://chromiumcodereview.appspot.com/9358031/diff/49002/chrome/browser/ui/webui/ntp/new_tab_ui.cc File chrome/browser/ui/webui/ntp/new_tab_ui.cc (right): https://chromiumcodereview.appspot.com/9358031/diff/49002/chrome/browser/ui/webui/ntp/new_tab_ui.cc#newcode382 chrome/browser/ui/webui/ntp/new_tab_ui.cc:382: int resource_id) { matching what you've done here https://chromiumcodereview.appspot.com/9358031/diff/49002/chrome/browser/ui/webui/ntp/new_tab_ui.h ...
8 years, 9 months ago (2012-02-28 23:01:23 UTC) #25
GeorgeY
https://chromiumcodereview.appspot.com/9358031/diff/45001/chrome/browser/resources/ntp4/new_tab.html File chrome/browser/resources/ntp4/new_tab.html (right): https://chromiumcodereview.appspot.com/9358031/diff/45001/chrome/browser/resources/ntp4/new_tab.html#newcode29 chrome/browser/resources/ntp4/new_tab.html:29: <link rel="stylesheet" href="chrome://newtab/suggestions_page.css"> On 2012/02/28 22:30:12, Dan Beam wrote: ...
8 years, 9 months ago (2012-02-29 00:15:45 UTC) #26
Dan Beam
lgtm w/nits https://chromiumcodereview.appspot.com/9358031/diff/49002/chrome/browser/resources/ntp4/page_list_view.js File chrome/browser/resources/ntp4/page_list_view.js (right): https://chromiumcodereview.appspot.com/9358031/diff/49002/chrome/browser/resources/ntp4/page_list_view.js#newcode614 chrome/browser/resources/ntp4/page_list_view.js:614: this.updatePageSwitchers(); On 2012/02/29 00:15:45, GeorgeY wrote: > ...
8 years, 9 months ago (2012-02-29 00:47:02 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/9358031/56001
8 years, 9 months ago (2012-02-29 03:33:21 UTC) #28
commit-bot: I haz the power
Try job failure for 9358031-56001 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 9 months ago (2012-02-29 05:12:02 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/9358031/56001
8 years, 9 months ago (2012-02-29 18:06:58 UTC) #30
GeorgeY
Sorry forgot to publish... https://chromiumcodereview.appspot.com/9358031/diff/50008/chrome/browser/resources/ntp4/suggestions_page.js File chrome/browser/resources/ntp4/suggestions_page.js (right): https://chromiumcodereview.appspot.com/9358031/diff/50008/chrome/browser/resources/ntp4/suggestions_page.js#newcode49 chrome/browser/resources/ntp4/suggestions_page.js:49: * for a blank thumbnail. ...
8 years, 9 months ago (2012-02-29 18:34:46 UTC) #31
commit-bot: I haz the power
Try job failure for 9358031-56001 (retry) (retry) on mac_rel for step "unit_tests". It's a second ...
8 years, 9 months ago (2012-02-29 20:02:18 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/9358031/67001
8 years, 9 months ago (2012-02-29 23:00:55 UTC) #33
commit-bot: I haz the power
Change committed as 124340
8 years, 9 months ago (2012-03-01 02:51:33 UTC) #34
Vitaly Pavlenko
6 years, 3 months ago (2014-08-29 02:31:39 UTC) #35
Message was sent while issue was closed.
On 2012/03/01 02:51:33, I haz the power (commit-bot) wrote:
> Change committed as 124340

ntp.SuggestionsPage() still exists in new_tab.js code as part of chrome://apps
code, though suggestions_page.js file is not included in chrome://apps. Should
we do something with that? Right now I only experience compilation problems like

##
/usr/local/google/home/vitalyp/src/chrome/browser/resources/ntp4/new_tab.js:182:
ERROR - Property SuggestionsPage never defined on ntp
##          newTabView.appendTilePage(new ntp.SuggestionsPage(),
##                                        ^

Powered by Google App Engine
This is Rietveld 408576698