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

Issue 2400133002: Sending LanguageModel info to suggestions server (Closed)

Created:
4 years, 2 months ago by jkrcal
Modified:
4 years, 2 months ago
CC:
chromium-reviews, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, droger+watchlist_chromium.org, ntp-dev+reviews_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Sending LanguageModel info to suggestions server This CL makes use of recently introduced translate::LanguageModel. It reveals top two languages from language model in requests to content suggestions server. As LanguageModel does not have an iOS factory yet, the iOS factory passes nullptr to NTPSnippetsFetcher at the moment. Achieving feature parity on iOS is left for follow-up CLs. BUG=653058 Committed: https://crrev.com/c2dd3bbcfd8c37c233ba1663176de847b8a90023 Cr-Commit-Position: refs/heads/master@{#423906}

Patch Set 1 #

Patch Set 2 : Small fixes #

Total comments: 8

Patch Set 3 : Guard sending potentially private info by a parameter #

Patch Set 4 : Bernhard's comments #

Patch Set 5 : Zero initialization #

Patch Set 6 : Zero initialization #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -26 lines) Patch
M chrome/browser/ntp_snippets/content_suggestions_service_factory.cc View 1 7 chunks +14 lines, -7 lines 0 comments Download
M components/ntp_snippets/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_snippets/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_fetcher.h View 1 2 3 4 5 7 chunks +15 lines, -0 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_fetcher.cc View 1 2 3 4 5 10 chunks +93 lines, -14 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc View 1 2 3 4 5 5 chunks +85 lines, -3 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_service_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (20 generated)
jkrcal
Bernhard, could you PTAL? Sylvain, could you PTAL at the iOS factory? David, could you ...
4 years, 2 months ago (2016-10-07 09:41:19 UTC) #2
sdefresne
ios/ lgtm
4 years, 2 months ago (2016-10-07 09:47:17 UTC) #5
droger
DEPS lgtm
4 years, 2 months ago (2016-10-07 09:55:38 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/2400133002/diff/20001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2400133002/diff/20001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#newcode172 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:172: char language[ULOC_LANG_CAPACITY]; This is not going to be zero-initialized, ...
4 years, 2 months ago (2016-10-07 12:26:13 UTC) #9
jkrcal
Thanks! PTAL, again. (note a new variation parameter guard appeared in the meantime) https://codereview.chromium.org/2400133002/diff/20001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File ...
4 years, 2 months ago (2016-10-07 12:58:43 UTC) #10
Bernhard Bauer
lgtm
4 years, 2 months ago (2016-10-07 13:26:24 UTC) #11
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/2400133002/100001
4 years, 2 months ago (2016-10-07 17:52:09 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-07 17:58:41 UTC) #27
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 18:01:13 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c2dd3bbcfd8c37c233ba1663176de847b8a90023
Cr-Commit-Position: refs/heads/master@{#423906}

Powered by Google App Engine
This is Rietveld 408576698