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

Issue 10182006: Adds the MostVisitedAction stat. This stat will provide a baseline to compare (Closed)

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

Description

Adds the MostVisitedAction stat. This stat will provide a baseline to compare to for the SuggestedSitesAction stat. BUG=118427 TEST=Go to the NTP, and switch between panes (e.g., "Apps" and "Most Visited"). Then, click on a link in the "Most Visited" pane. Open a new tab. If the Most Visited pane is not selected, select it, close the tab and open a new one. Type a URL in the Omnibox (and press enter). Open a new tab, and close it. Then, go to about:histograms, and verify that there are data points in 4 different bins for the NewTabPage.MostVisitedAction stat. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134205

Patch Set 1 #

Total comments: 4

Patch Set 2 : Clarified a comment as suggested by beaudoin@. #

Total comments: 4

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Sync'ed. #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : Sync'ed. #

Total comments: 4

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -43 lines) Patch
M chrome/browser/resources/ntp4/most_visited_page.js View 1 2 3 4 5 6 5 chunks +43 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.js View 1 2 3 4 5 6 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/suggestions_page.js View 1 2 3 4 5 6 6 chunks +23 lines, -14 lines 0 comments Download
M chrome/browser/ui/webui/ntp/most_visited_handler.h View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/most_visited_handler.cc View 1 2 3 4 5 6 5 chunks +46 lines, -1 line 0 comments Download
A chrome/browser/ui/webui/ntp/ntp_stats.h View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/suggestions_page_handler.cc View 1 2 3 4 5 6 5 chunks +4 lines, -28 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
beaudoin
Drive-by review. https://chromiumcodereview.appspot.com/10182006/diff/1/chrome/browser/resources/ntp4/most_visited_page.js File chrome/browser/resources/ntp4/most_visited_page.js (right): https://chromiumcodereview.appspot.com/10182006/diff/1/chrome/browser/resources/ntp4/most_visited_page.js#newcode306 chrome/browser/resources/ntp4/most_visited_page.js:306: this.addEventListener('cardselected', this.handleCardSelected_); handleCard* methods will not have ...
8 years, 8 months ago (2012-04-23 16:46:51 UTC) #1
macourteau
https://chromiumcodereview.appspot.com/10182006/diff/1/chrome/browser/resources/ntp4/most_visited_page.js File chrome/browser/resources/ntp4/most_visited_page.js (right): https://chromiumcodereview.appspot.com/10182006/diff/1/chrome/browser/resources/ntp4/most_visited_page.js#newcode306 chrome/browser/resources/ntp4/most_visited_page.js:306: this.addEventListener('cardselected', this.handleCardSelected_); On 2012/04/23 16:46:52, beaudoin wrote: > handleCard* ...
8 years, 8 months ago (2012-04-23 19:49:41 UTC) #2
macourteau
Hi Evan, Can you review this? This is adding the NewTabPage.MostVisitedAction stat (as you suggested, ...
8 years, 8 months ago (2012-04-23 19:55:36 UTC) #3
Evan Stade
https://chromiumcodereview.appspot.com/10182006/diff/12001/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): https://chromiumcodereview.appspot.com/10182006/diff/12001/chrome/browser/resources/ntp4/new_tab.js#newcode234 chrome/browser/resources/ntp4/new_tab.js:234: cr.dispatchSimpleEvent(document, 'ntploaded', true, true); ntpLoaded https://chromiumcodereview.appspot.com/10182006/diff/12001/chrome/browser/resources/ntp4/suggestions_page.js File chrome/browser/resources/ntp4/suggestions_page.js (right): ...
8 years, 8 months ago (2012-04-24 20:29:44 UTC) #4
macourteau
https://chromiumcodereview.appspot.com/10182006/diff/12001/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): https://chromiumcodereview.appspot.com/10182006/diff/12001/chrome/browser/resources/ntp4/new_tab.js#newcode234 chrome/browser/resources/ntp4/new_tab.js:234: cr.dispatchSimpleEvent(document, 'ntploaded', true, true); On 2012/04/24 20:29:44, Evan Stade ...
8 years, 8 months ago (2012-04-26 19:10:13 UTC) #5
Evan Stade
lgtm http://codereview.chromium.org/10182006/diff/35002/chrome/browser/resources/ntp4/most_visited_page.js File chrome/browser/resources/ntp4/most_visited_page.js (right): http://codereview.chromium.org/10182006/diff/35002/chrome/browser/resources/ntp4/most_visited_page.js#newcode383 chrome/browser/resources/ntp4/most_visited_page.js:383: if (ntp.getCardSlider() && ntp.getCardSlider().currentCardValue) { merge the two ...
8 years, 8 months ago (2012-04-26 21:13:05 UTC) #6
macourteau
http://codereview.chromium.org/10182006/diff/35002/chrome/browser/resources/ntp4/most_visited_page.js File chrome/browser/resources/ntp4/most_visited_page.js (right): http://codereview.chromium.org/10182006/diff/35002/chrome/browser/resources/ntp4/most_visited_page.js#newcode383 chrome/browser/resources/ntp4/most_visited_page.js:383: if (ntp.getCardSlider() && ntp.getCardSlider().currentCardValue) { On 2012/04/26 21:13:05, Evan ...
8 years, 8 months ago (2012-04-26 21:51:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/macourteau@chromium.org/10182006/31006
8 years, 8 months ago (2012-04-26 21:54:44 UTC) #8
Dan Beam
drive-by: I would seem useful to create a static utility method like ntp.isLoading() (like I ...
8 years, 8 months ago (2012-04-27 00:51:49 UTC) #9
commit-bot: I haz the power
8 years, 8 months ago (2012-04-27 01:39:08 UTC) #10
Change committed as 134205

Powered by Google App Engine
This is Rietveld 408576698