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

Issue 2117373002: Cleanup: Change LogMostVisitedImpression|Navigation APIs to take an enum (Closed)

Created:
4 years, 5 months ago by Marc Treib
Modified:
4 years, 5 months ago
Reviewers:
Bernhard Bauer, dcheng
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, extensions-reviews_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, jfweitz+watch_chromium.org, David Black, arv+watch_chromium.org, samarth+watch_chromium.org, chromium-apps-reviews_chromium.org, kmadhusu+watch_chromium.org, Jered, pedrosimonetti+watch_chromium.org, sfiera
Base URL:
https://chromium.googlesource.com/chromium/src.git@ntp_uma_cleanup
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup: Change LogMostVisitedImpression|Navigation APIs to take an enum (instead of a string with only a few legal values) BUG=625161 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/d304d764311a09dc1f680368e42bd8a94937d04f Cr-Commit-Position: refs/heads/master@{#403880}

Patch Set 1 #

Total comments: 8

Patch Set 2 : TODO #

Total comments: 8

Patch Set 3 : enum class #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -192 lines) Patch
M chrome/browser/resources/local_ntp/most_visited_single.js View 1 2 8 chunks +28 lines, -36 lines 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_thumbnail.js View 5 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_title.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_util.js View 1 2 5 chunks +18 lines, -20 lines 0 comments Download
M chrome/browser/ui/search/search_ipc_router.h View 1 2 3 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/search/search_ipc_router.cc View 4 chunks +6 lines, -24 lines 0 comments Download
M chrome/browser/ui/search/search_ipc_router_unittest.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_user_data_logger.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc View 1 2 3 2 chunks +33 lines, -32 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_user_data_logger_unittest.cc View 1 2 3 1 chunk +56 lines, -33 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/common/search/ntp_logging_events.h View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 1 2 3 2 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
Marc Treib
PTAL!
4 years, 5 months ago (2016-07-05 14:25:32 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/2117373002/diff/1/chrome/browser/resources/local_ntp/most_visited_single.js File chrome/browser/resources/local_ntp/most_visited_single.js (right): https://codereview.chromium.org/2117373002/diff/1/chrome/browser/resources/local_ntp/most_visited_single.js#newcode56 chrome/browser/resources/local_ntp/most_visited_single.js:56: NTP_TILE_SOURCE_CLIENT: 0, Nit: you get the equivalent of namespacing ...
4 years, 5 months ago (2016-07-05 14:31:54 UTC) #4
Marc Treib
https://codereview.chromium.org/2117373002/diff/1/chrome/browser/resources/local_ntp/most_visited_single.js File chrome/browser/resources/local_ntp/most_visited_single.js (right): https://codereview.chromium.org/2117373002/diff/1/chrome/browser/resources/local_ntp/most_visited_single.js#newcode56 chrome/browser/resources/local_ntp/most_visited_single.js:56: NTP_TILE_SOURCE_CLIENT: 0, On 2016/07/05 14:31:54, Bernhard Bauer wrote: > ...
4 years, 5 months ago (2016-07-05 14:37:53 UTC) #5
Bernhard Bauer
https://codereview.chromium.org/2117373002/diff/1/chrome/browser/resources/local_ntp/most_visited_util.js File chrome/browser/resources/local_ntp/most_visited_util.js (right): https://codereview.chromium.org/2117373002/diff/1/chrome/browser/resources/local_ntp/most_visited_util.js#newcode55 chrome/browser/resources/local_ntp/most_visited_util.js:55: var NTP_LOGGING_TILE_SOURCE = { On 2016/07/05 14:37:53, Marc Treib ...
4 years, 5 months ago (2016-07-05 14:43:42 UTC) #6
Marc Treib
https://codereview.chromium.org/2117373002/diff/1/chrome/browser/resources/local_ntp/most_visited_util.js File chrome/browser/resources/local_ntp/most_visited_util.js (right): https://codereview.chromium.org/2117373002/diff/1/chrome/browser/resources/local_ntp/most_visited_util.js#newcode55 chrome/browser/resources/local_ntp/most_visited_util.js:55: var NTP_LOGGING_TILE_SOURCE = { On 2016/07/05 14:43:42, Bernhard Bauer ...
4 years, 5 months ago (2016-07-05 14:46:42 UTC) #7
Bernhard Bauer
lgtm https://codereview.chromium.org/2117373002/diff/1/chrome/browser/resources/local_ntp/most_visited_util.js File chrome/browser/resources/local_ntp/most_visited_util.js (right): https://codereview.chromium.org/2117373002/diff/1/chrome/browser/resources/local_ntp/most_visited_util.js#newcode55 chrome/browser/resources/local_ntp/most_visited_util.js:55: var NTP_LOGGING_TILE_SOURCE = { On 2016/07/05 14:46:42, Marc ...
4 years, 5 months ago (2016-07-05 14:59:43 UTC) #8
Marc Treib
https://codereview.chromium.org/2117373002/diff/1/chrome/browser/resources/local_ntp/most_visited_util.js File chrome/browser/resources/local_ntp/most_visited_util.js (right): https://codereview.chromium.org/2117373002/diff/1/chrome/browser/resources/local_ntp/most_visited_util.js#newcode55 chrome/browser/resources/local_ntp/most_visited_util.js:55: var NTP_LOGGING_TILE_SOURCE = { On 2016/07/05 14:59:42, Bernhard Bauer ...
4 years, 5 months ago (2016-07-05 15:10:16 UTC) #9
Marc Treib
+dcheng for render_messages.h. PTAL!
4 years, 5 months ago (2016-07-05 15:10:49 UTC) #11
dcheng
LGTM with nits https://codereview.chromium.org/2117373002/diff/20001/chrome/common/ntp_logging_events.h File chrome/common/ntp_logging_events.h (right): https://codereview.chromium.org/2117373002/diff/20001/chrome/common/ntp_logging_events.h#newcode56 chrome/common/ntp_logging_events.h:56: enum NTPLoggingTileSource { Nit: Can we ...
4 years, 5 months ago (2016-07-06 01:51:25 UTC) #12
Marc Treib
https://codereview.chromium.org/2117373002/diff/20001/chrome/common/ntp_logging_events.h File chrome/common/ntp_logging_events.h (right): https://codereview.chromium.org/2117373002/diff/20001/chrome/common/ntp_logging_events.h#newcode56 chrome/common/ntp_logging_events.h:56: enum NTPLoggingTileSource { On 2016/07/06 01:51:25, dcheng wrote: > ...
4 years, 5 months ago (2016-07-06 08:49:07 UTC) #13
Marc Treib
https://codereview.chromium.org/2117373002/diff/20001/chrome/renderer/searchbox/searchbox_extension.cc File chrome/renderer/searchbox/searchbox_extension.cc (right): https://codereview.chromium.org/2117373002/diff/20001/chrome/renderer/searchbox/searchbox_extension.cc#newcode1070 chrome/renderer/searchbox/searchbox_extension.cc:1070: if (args[1]->Uint32Value() <= NTP_TILE_SOURCE_LAST) { On 2016/07/06 08:49:07, Marc ...
4 years, 5 months ago (2016-07-06 08:55:56 UTC) #14
Bernhard Bauer
https://codereview.chromium.org/2117373002/diff/20001/chrome/common/ntp_logging_events.h File chrome/common/ntp_logging_events.h (right): https://codereview.chromium.org/2117373002/diff/20001/chrome/common/ntp_logging_events.h#newcode56 chrome/common/ntp_logging_events.h:56: enum NTPLoggingTileSource { On 2016/07/06 08:49:06, Marc Treib wrote: ...
4 years, 5 months ago (2016-07-06 09:00:52 UTC) #15
dcheng
https://codereview.chromium.org/2117373002/diff/20001/chrome/renderer/searchbox/searchbox_extension.cc File chrome/renderer/searchbox/searchbox_extension.cc (right): https://codereview.chromium.org/2117373002/diff/20001/chrome/renderer/searchbox/searchbox_extension.cc#newcode1070 chrome/renderer/searchbox/searchbox_extension.cc:1070: if (args[1]->Uint32Value() <= NTP_TILE_SOURCE_LAST) { On 2016/07/06 08:55:56, Marc ...
4 years, 5 months ago (2016-07-06 09:01:28 UTC) #16
Marc Treib
https://codereview.chromium.org/2117373002/diff/20001/chrome/common/ntp_logging_events.h File chrome/common/ntp_logging_events.h (right): https://codereview.chromium.org/2117373002/diff/20001/chrome/common/ntp_logging_events.h#newcode56 chrome/common/ntp_logging_events.h:56: enum NTPLoggingTileSource { On 2016/07/06 09:00:51, Bernhard Bauer wrote: ...
4 years, 5 months ago (2016-07-06 10:14:38 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2117373002/60001
4 years, 5 months ago (2016-07-06 10:17:46 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-06 10:51:36 UTC) #21
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/2117373002/60001
4 years, 5 months ago (2016-07-06 10:56:48 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-06 11:02:59 UTC) #25
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-06 11:03:05 UTC) #26
commit-bot: I haz the power
4 years, 5 months ago (2016-07-06 11:04:34 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d304d764311a09dc1f680368e42bd8a94937d04f
Cr-Commit-Position: refs/heads/master@{#403880}

Powered by Google App Engine
This is Rietveld 408576698