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

Issue 17114002: Field trial removing tiles from NTP if URL is already open - for 1993 clients (Closed)

Created:
7 years, 6 months ago by annark1
Modified:
7 years, 5 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, mad+watch_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, jar (doing other things), dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, browser-components-watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, asvitkine+watch_chromium.org, samarth+watch_chromium.org, estade+watch_chromium.org, kmadhusu+watch_chromium.org, Ilya Sherman, Jered, pedrosimonetti+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Adding support for 1993 clients to part B of NTP Most Visited Tile Placement Experiment. Part B of the experiment removes a tile from the NTP if the suggested URL is already open in one of the current browser's tabs. Also adding UMA stats to parts A (shuffle tile placement) and B of the experiment. BUG=237911 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213947

Patch Set 1 #

Total comments: 14

Patch Set 2 : Rebased and addressed comments #

Patch Set 3 : Fixed rebase issues #

Total comments: 8

Patch Set 4 : Running try job on android_dbg to force error #

Patch Set 5 : Forcing Android OS error again #

Patch Set 6 : forcing android error in mv handler #

Patch Set 7 : synced for try jobs #

Patch Set 8 : re-uploading for diffs #

Patch Set 9 : Please ignore this patch set #

Patch Set 10 : Addressed asvitkines comments #

Total comments: 8

Patch Set 11 : Addressed comments #

Total comments: 10

Patch Set 12 : Added tests for most_visited_tiles_experiment #

Patch Set 13 : Spacing fix #

Total comments: 10

Patch Set 14 : Addressed comments plus rebase #

Total comments: 10

Patch Set 15 : Consolidated GetOpenURLs and addressed comments #

Total comments: 12

Patch Set 16 : Addressed comments #

Total comments: 10

Patch Set 17 : Addressed comments #

Patch Set 18 : #

Patch Set 19 : Fixing broken diffs #

Total comments: 12

Patch Set 20 : Addressed nits #

Patch Set 21 : Fixed failing tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+658 lines, -99 lines) Patch
A chrome/browser/history/most_visited_tiles_experiment.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +67 lines, -0 lines 0 comments Download
A chrome/browser/history/most_visited_tiles_experiment.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +124 lines, -0 lines 0 comments Download
A chrome/browser/history/most_visited_tiles_experiment_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +358 lines, -0 lines 0 comments Download
M chrome/browser/history/top_sites.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/history/top_sites.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -38 lines 0 comments Download
M chrome/browser/search/instant_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/search/instant_page.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_page.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +34 lines, -1 line 0 comments Download
M chrome/browser/ui/tabs/tab_strip_model_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_strip_model_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/most_visited_handler.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/ntp/most_visited_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +16 lines, -53 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 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
annark1
Hi Philippe, This is the experiment with 1993 code plus some UMA stats added. PTAL. ...
7 years, 6 months ago (2013-06-14 21:11:11 UTC) #1
beaudoin
LGTM with a few nits. For the big proposed clean-up, please check with the owner ...
7 years, 6 months ago (2013-06-20 21:55:44 UTC) #2
beaudoin
On 2013/06/20 21:55:44, beaudoin wrote: > LGTM with a few nits. > > For the ...
7 years, 5 months ago (2013-07-03 18:33:05 UTC) #3
annark1
Adding owners: estade@ for most_visited_handler.cc/.h asvitkine@ for histograms.xml brettw@ for everything else PTAL. brettw, Philippe ...
7 years, 5 months ago (2013-07-04 18:29:14 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/17114002/diff/14001/chrome/browser/history/top_sites.cc File chrome/browser/history/top_sites.cc (right): https://codereview.chromium.org/17114002/diff/14001/chrome/browser/history/top_sites.cc#newcode84 chrome/browser/history/top_sites.cc:84: "NewTabPage.MostVisitedTilePlacementExperiment", I suggest making a helper function to log ...
7 years, 5 months ago (2013-07-04 20:28:29 UTC) #5
Evan Stade
most visited handler lgtm
7 years, 5 months ago (2013-07-08 20:25:07 UTC) #6
sky
Can you upload again, latest patch doesn't contain side-by-side diffs.
7 years, 5 months ago (2013-07-16 15:54:30 UTC) #7
annark
Thanks for letting me know - fixed now. On Tue, Jul 16, 2013 at 11:54 ...
7 years, 5 months ago (2013-07-16 16:02:46 UTC) #8
annark1
https://chromiumcodereview.appspot.com/17114002/diff/14001/chrome/browser/history/top_sites.cc File chrome/browser/history/top_sites.cc (right): https://chromiumcodereview.appspot.com/17114002/diff/14001/chrome/browser/history/top_sites.cc#newcode84 chrome/browser/history/top_sites.cc:84: "NewTabPage.MostVisitedTilePlacementExperiment", On 2013/07/04 20:28:30, Alexei Svitkine wrote: > I ...
7 years, 5 months ago (2013-07-16 18:07:08 UTC) #9
sky
I get whey you're adding this logic to TopSites, but I think it should be ...
7 years, 5 months ago (2013-07-16 21:15:06 UTC) #10
annark1
Please see my comments below. https://chromiumcodereview.appspot.com/17114002/diff/44002/chrome/browser/history/top_sites.cc File chrome/browser/history/top_sites.cc (right): https://chromiumcodereview.appspot.com/17114002/diff/44002/chrome/browser/history/top_sites.cc#newcode115 chrome/browser/history/top_sites.cc:115: const std::string url = ...
7 years, 5 months ago (2013-07-17 17:45:52 UTC) #11
sky
How about some tests for most_visited_tiles_experiments? https://chromiumcodereview.appspot.com/17114002/diff/75001/chrome/browser/history/most_visited_tiles_experiment.cc File chrome/browser/history/most_visited_tiles_experiment.cc (right): https://chromiumcodereview.appspot.com/17114002/diff/75001/chrome/browser/history/most_visited_tiles_experiment.cc#newcode44 chrome/browser/history/most_visited_tiles_experiment.cc:44: LogInHistogram(NTP_TILE_EXPERIMENT_ACTION_TOO_FEW_URLS_TILES_1_8); can't you ...
7 years, 5 months ago (2013-07-17 21:30:50 UTC) #12
annark1
Added tests for most_visited_tiles_exeriment. PTAL. Thanks! https://chromiumcodereview.appspot.com/17114002/diff/75001/chrome/browser/history/most_visited_tiles_experiment.cc File chrome/browser/history/most_visited_tiles_experiment.cc (right): https://chromiumcodereview.appspot.com/17114002/diff/75001/chrome/browser/history/most_visited_tiles_experiment.cc#newcode44 chrome/browser/history/most_visited_tiles_experiment.cc:44: LogInHistogram(NTP_TILE_EXPERIMENT_ACTION_TOO_FEW_URLS_TILES_1_8); On 2013/07/17 ...
7 years, 5 months ago (2013-07-22 20:35:33 UTC) #13
Alexei Svitkine (slow)
This change is doing a lot of things. It would be easier to review if ...
7 years, 5 months ago (2013-07-22 20:59:05 UTC) #14
Alexei Svitkine (slow)
https://chromiumcodereview.appspot.com/17114002/diff/85001/chrome/browser/history/most_visited_tiles_experiment.cc File chrome/browser/history/most_visited_tiles_experiment.cc (right): https://chromiumcodereview.appspot.com/17114002/diff/85001/chrome/browser/history/most_visited_tiles_experiment.cc#newcode34 chrome/browser/history/most_visited_tiles_experiment.cc:34: "NewTabPage.MostVisitedTilePlacementExperiment"; Is there a reason you're defining this here ...
7 years, 5 months ago (2013-07-22 21:14:09 UTC) #15
annark1
This patch moves the 1993 experiment logic to instant_page.cc, due to rebase changes to instant_controller ...
7 years, 5 months ago (2013-07-23 19:52:21 UTC) #16
Alexei Svitkine (slow)
https://chromiumcodereview.appspot.com/17114002/diff/85001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://chromiumcodereview.appspot.com/17114002/diff/85001/chrome/browser/ui/search/instant_controller.cc#newcode706 chrome/browser/ui/search/instant_controller.cc:706: if (!history::MostVisitedTilesExperiment::IsDontShowOpenURLsEnabled()) On 2013/07/23 19:52:21, annark1 wrote: > That's ...
7 years, 5 months ago (2013-07-23 20:10:51 UTC) #17
annark1
I've moved the two GetOpenURLs functions into a single place, in tab_strip_model_utils.cc, plus addressed comments. ...
7 years, 5 months ago (2013-07-24 01:23:57 UTC) #18
Alexei Svitkine (slow)
https://codereview.chromium.org/17114002/diff/101001/chrome/browser/history/most_visited_tiles_experiment_unittest.cc File chrome/browser/history/most_visited_tiles_experiment_unittest.cc (right): https://codereview.chromium.org/17114002/diff/101001/chrome/browser/history/most_visited_tiles_experiment_unittest.cc#newcode109 chrome/browser/history/most_visited_tiles_experiment_unittest.cc:109: if (histogram) { If this is NULL for the ...
7 years, 5 months ago (2013-07-24 18:37:36 UTC) #19
Alexei Svitkine (slow)
https://codereview.chromium.org/17114002/diff/101001/chrome/browser/history/most_visited_tiles_experiment.cc File chrome/browser/history/most_visited_tiles_experiment.cc (right): https://codereview.chromium.org/17114002/diff/101001/chrome/browser/history/most_visited_tiles_experiment.cc#newcode74 chrome/browser/history/most_visited_tiles_experiment.cc:74: if (open_urls.count(url) != 0) { I think you can ...
7 years, 5 months ago (2013-07-24 19:17:11 UTC) #20
annark1
https://codereview.chromium.org/17114002/diff/101001/chrome/browser/history/most_visited_tiles_experiment.cc File chrome/browser/history/most_visited_tiles_experiment.cc (right): https://codereview.chromium.org/17114002/diff/101001/chrome/browser/history/most_visited_tiles_experiment.cc#newcode74 chrome/browser/history/most_visited_tiles_experiment.cc:74: if (open_urls.count(url) != 0) { Nice! Thanks for this ...
7 years, 5 months ago (2013-07-24 20:43:30 UTC) #21
Alexei Svitkine (slow)
lgtm with a final set of comments, please be sure to get sky's review as ...
7 years, 5 months ago (2013-07-24 21:04:30 UTC) #22
annark1
https://codereview.chromium.org/17114002/diff/110001/chrome/browser/history/most_visited_tiles_experiment.cc File chrome/browser/history/most_visited_tiles_experiment.cc (right): https://codereview.chromium.org/17114002/diff/110001/chrome/browser/history/most_visited_tiles_experiment.cc#newcode117 chrome/browser/history/most_visited_tiles_experiment.cc:117: } else { On 2013/07/24 21:04:31, Alexei Svitkine wrote: ...
7 years, 5 months ago (2013-07-24 21:51:39 UTC) #23
sky
LGTM with following changes https://codereview.chromium.org/17114002/diff/115002/chrome/browser/history/most_visited_tiles_experiment_unittest.cc File chrome/browser/history/most_visited_tiles_experiment_unittest.cc (right): https://codereview.chromium.org/17114002/diff/115002/chrome/browser/history/most_visited_tiles_experiment_unittest.cc#newcode14 chrome/browser/history/most_visited_tiles_experiment_unittest.cc:14: #include "chrome/browser/history/most_visited_tiles_experiment.h" nit: this should ...
7 years, 5 months ago (2013-07-25 17:20:21 UTC) #24
annark1
Thanks all for your reviews. https://codereview.chromium.org/17114002/diff/115002/chrome/browser/history/most_visited_tiles_experiment_unittest.cc File chrome/browser/history/most_visited_tiles_experiment_unittest.cc (right): https://codereview.chromium.org/17114002/diff/115002/chrome/browser/history/most_visited_tiles_experiment_unittest.cc#newcode14 chrome/browser/history/most_visited_tiles_experiment_unittest.cc:14: #include "chrome/browser/history/most_visited_tiles_experiment.h" On 2013/07/25 ...
7 years, 5 months ago (2013-07-25 18:51:22 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/annark@chromium.org/17114002/127001
7 years, 5 months ago (2013-07-25 19:23:23 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/annark@chromium.org/17114002/127001
7 years, 5 months ago (2013-07-25 22:32:56 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/annark@chromium.org/17114002/127001
7 years, 5 months ago (2013-07-25 22:58:08 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/annark@chromium.org/17114002/127001
7 years, 5 months ago (2013-07-25 23:02:58 UTC) #29
Alexei Svitkine (slow)
On 2013/07/25 23:02:58, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 5 months ago (2013-07-26 02:13:50 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/annark@chromium.org/17114002/127001
7 years, 5 months ago (2013-07-26 03:41:33 UTC) #31
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-26 04:34:34 UTC) #32
annark1
On 2013/07/26 04:34:34, I haz the power (commit-bot) wrote: > Sorry for I got bad ...
7 years, 5 months ago (2013-07-26 13:38:08 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/annark@chromium.org/17114002/176001
7 years, 5 months ago (2013-07-26 13:41:33 UTC) #34
commit-bot: I haz the power
7 years, 5 months ago (2013-07-26 17:45:14 UTC) #35
Message was sent while issue was closed.
Change committed as 213947

Powered by Google App Engine
This is Rietveld 408576698