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

Issue 1974483002: Allow getting _only_ personalized snippets for NTP. (Closed)

Created:
4 years, 7 months ago by jkrcal
Modified:
4 years, 7 months ago
CC:
chromium-reviews, mcwilliams+watch_chromium.org, dgn+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow getting _only_ personalized snippets for NTP. Changing the personalization settings via variation parameters so that we can specify to download personalized snippets only. Splitting the previously single variation parameter into two to make it easier to parse. Additionally, the CL removes the fallback to non-personalized snippets if the oauth request fails. BUG=606320 Committed: https://crrev.com/9b33018fcf78d2ce335eb43c431d922b708eb05f Cr-Commit-Position: refs/heads/master@{#393465}

Patch Set 1 #

Patch Set 2 : Minor fixes #

Total comments: 11

Patch Set 3 : After code review #1 #

Total comments: 6

Patch Set 4 : After code review #2 #

Total comments: 2

Patch Set 5 : After code review #3 #

Total comments: 5

Patch Set 6 : After code review #4 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -37 lines) Patch
M components/ntp_snippets/ntp_snippets_fetcher.h View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_fetcher.cc View 1 2 3 4 5 9 chunks +66 lines, -33 lines 1 comment Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (9 generated)
jkrcal
PTAL
4 years, 7 months ago (2016-05-11 16:53:23 UTC) #2
Marc Treib
https://codereview.chromium.org/1974483002/diff/20001/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/1974483002/diff/20001/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode52 components/ntp_snippets/ntp_snippets_fetcher.cc:52: const char kVariantName[] = "fetching_variant"; Also here: s/variant/personalization, or ...
4 years, 7 months ago (2016-05-12 08:59:16 UTC) #3
jkrcal
Thanks! PTAL again. https://codereview.chromium.org/1974483002/diff/20001/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/1974483002/diff/20001/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode52 components/ntp_snippets/ntp_snippets_fetcher.cc:52: const char kVariantName[] = "fetching_variant"; On ...
4 years, 7 months ago (2016-05-12 09:57:29 UTC) #4
Marc Treib
https://codereview.chromium.org/1974483002/diff/20001/components/ntp_snippets/ntp_snippets_fetcher.h File components/ntp_snippets/ntp_snippets_fetcher.h (right): https://codereview.chromium.org/1974483002/diff/20001/components/ntp_snippets/ntp_snippets_fetcher.h#newcode102 components/ntp_snippets/ntp_snippets_fetcher.h:102: enum class Variant { kPersonalized, kNonPersonalized, kAll }; On ...
4 years, 7 months ago (2016-05-12 10:06:15 UTC) #5
jkrcal
Thanks again. PTAL. https://codereview.chromium.org/1974483002/diff/40001/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (left): https://codereview.chromium.org/1974483002/diff/40001/components/ntp_snippets/ntp_snippets_fetcher.cc#oldcode310 components/ntp_snippets/ntp_snippets_fetcher.cc:310: FetchSnippetsNonAuthenticated(); On 2016/05/12 10:06:15, Marc Treib ...
4 years, 7 months ago (2016-05-12 11:58:57 UTC) #6
Marc Treib
https://codereview.chromium.org/1974483002/diff/60001/components/ntp_snippets/ntp_snippets_fetcher.h File components/ntp_snippets/ntp_snippets_fetcher.h (right): https://codereview.chromium.org/1974483002/diff/60001/components/ntp_snippets/ntp_snippets_fetcher.h#newcode55 components/ntp_snippets/ntp_snippets_fetcher.h:55: // histograms, so do not change existing values. ^^ ...
4 years, 7 months ago (2016-05-12 12:07:26 UTC) #7
jkrcal
PTAL. https://codereview.chromium.org/1974483002/diff/60001/components/ntp_snippets/ntp_snippets_fetcher.h File components/ntp_snippets/ntp_snippets_fetcher.h (right): https://codereview.chromium.org/1974483002/diff/60001/components/ntp_snippets/ntp_snippets_fetcher.h#newcode55 components/ntp_snippets/ntp_snippets_fetcher.h:55: // histograms, so do not change existing values. ...
4 years, 7 months ago (2016-05-12 13:37:09 UTC) #8
jkrcal
Alexei: PTAL at the histograms.xml change.
4 years, 7 months ago (2016-05-12 13:50:08 UTC) #11
Marc Treib
lgtm https://codereview.chromium.org/1974483002/diff/80001/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/1974483002/diff/80001/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode122 components/ntp_snippets/ntp_snippets_fetcher.cc:122: return "Error in obtaining an oauth2 access token."; ...
4 years, 7 months ago (2016-05-12 13:57:59 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974483002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974483002/100001
4 years, 7 months ago (2016-05-12 14:14:03 UTC) #14
jkrcal
Thanks for all the comments! https://codereview.chromium.org/1974483002/diff/80001/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/1974483002/diff/80001/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode122 components/ntp_snippets/ntp_snippets_fetcher.cc:122: return "Error in obtaining ...
4 years, 7 months ago (2016-05-12 14:14:04 UTC) #15
Alexei Svitkine (slow)
lgtm (I think both with "in" and without "in" makes grammatical sense.)
4 years, 7 months ago (2016-05-12 14:44:18 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/110075)
4 years, 7 months ago (2016-05-12 15:01:33 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974483002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974483002/100001
4 years, 7 months ago (2016-05-13 07:26:36 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-13 07:30:01 UTC) #23
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/9b33018fcf78d2ce335eb43c431d922b708eb05f Cr-Commit-Position: refs/heads/master@{#393465}
4 years, 7 months ago (2016-05-13 07:31:22 UTC) #25
Marc Treib
4 years, 7 months ago (2016-05-17 14:54:42 UTC) #26
Message was sent while issue was closed.
https://codereview.chromium.org/1974483002/diff/100001/components/ntp_snippet...
File components/ntp_snippets/ntp_snippets_fetcher.cc (right):

https://codereview.chromium.org/1974483002/diff/100001/components/ntp_snippet...
components/ntp_snippets/ntp_snippets_fetcher.cc:174: std::string
host_restriction = variations::GetVariationParamValue(
Post-commit comment: The non-host-restricted case will occasionally break right
now, because the NTPSnippetsService (unconditionally) filters by host in
OnSuggestionsChanged.

Powered by Google App Engine
This is Rietveld 408576698