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

Issue 2271283002: Add request type to FetchSuggestionsRequest. (Closed)

Created:
4 years, 4 months ago by vitaliii
Modified:
4 years, 3 months ago
CC:
chromium-reviews, ntp-dev+reviews_chromium.org, tschumann
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add request type to FetchSuggestionsRequest. There are two types of requests: interactive (e.g. a fetch when NTP is opened) and noninteractive (e.g. a background prefetch). The noninteractive requests are less important and thus they can be dropped first if needed. This CL adds request type to the request. BUG=638224 Committed: https://crrev.com/2a444eb2c8fd642fb23bc2a1396bec823d9a515d Cr-Commit-Position: refs/heads/master@{#414672}

Patch Set 1 : Addressed comments. #

Total comments: 4

Patch Set 2 : Addressed nit. #

Patch Set 3 : Reflected server change. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -19 lines) Patch
M components/ntp_snippets/ntp_snippets_fetcher.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_fetcher.cc View 1 2 3 10 chunks +21 lines, -13 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_fetcher_unittest.cc View 1 2 3 8 chunks +11 lines, -6 lines 0 comments Download

Messages

Total messages: 35 (16 generated)
vitaliii
Hi, please have a look.
4 years, 4 months ago (2016-08-24 17:42:40 UTC) #2
sfiera
https://codereview.chromium.org/2271283002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2271283002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode73 components/ntp_snippets/ntp_snippets_fetcher.cc:73: // TODO(vitaliii): Decide on actual values. See go/request-qos-2.0 for ...
4 years, 4 months ago (2016-08-24 17:54:54 UTC) #4
Marc Treib
https://codereview.chromium.org/2271283002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2271283002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode73 components/ntp_snippets/ntp_snippets_fetcher.cc:73: // TODO(vitaliii): Decide on actual values. See go/request-qos-2.0 for ...
4 years, 4 months ago (2016-08-25 08:25:38 UTC) #5
vitaliii
4 years, 4 months ago (2016-08-25 08:57:36 UTC) #7
vitaliii
Hi, please have a look.
4 years, 4 months ago (2016-08-25 09:23:37 UTC) #9
Marc Treib
LGTM with one more nit, but please wait for sfiera's approval too wrt the protocol. ...
4 years, 4 months ago (2016-08-25 09:26:58 UTC) #10
sfiera
LGTM, but please submit the backend change and let it roll out to alpha first ...
4 years, 4 months ago (2016-08-25 09:39:31 UTC) #11
sfiera
LGTM but you'll probably need a rebase, there's been like 20 changes to this file ...
4 years, 3 months ago (2016-08-25 15:23:44 UTC) #12
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/2271283002/60001
4 years, 3 months ago (2016-08-25 15:37:48 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/257762) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-08-25 15:40:43 UTC) #17
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/2271283002/80001
4 years, 3 months ago (2016-08-25 16:28:59 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/267695)
4 years, 3 months ago (2016-08-25 18:03:39 UTC) #22
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/2271283002/80001
4 years, 3 months ago (2016-08-25 19:11:05 UTC) #24
tschumann
lgtm
4 years, 3 months ago (2016-08-25 20:12:53 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/267853)
4 years, 3 months ago (2016-08-25 20:45:02 UTC) #28
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/2271283002/80001
4 years, 3 months ago (2016-08-26 08:12:22 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 3 months ago (2016-08-26 08:43:59 UTC) #32
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/2a444eb2c8fd642fb23bc2a1396bec823d9a515d Cr-Commit-Position: refs/heads/master@{#414672}
4 years, 3 months ago (2016-08-26 08:46:39 UTC) #34
vitaliii
4 years, 3 months ago (2016-08-26 09:13:46 UTC) #35
Message was sent while issue was closed.
https://codereview.chromium.org/2271283002/diff/20001/components/ntp_snippets...
File components/ntp_snippets/ntp_snippets_fetcher.cc (right):

https://codereview.chromium.org/2271283002/diff/20001/components/ntp_snippets...
components/ntp_snippets/ntp_snippets_fetcher.cc:264: count_to_fetch() {}
On 2016/08/25 09:26:58, Marc Treib wrote:
> Also initialize interactive_request here

Done.

https://codereview.chromium.org/2271283002/diff/20001/components/ntp_snippets...
components/ntp_snippets/ntp_snippets_fetcher.cc:582: << "): " <<
last_fetch_json_;
On 2016/08/25 09:26:58, Marc Treib wrote:
> Was this auto-formatted?! (It's fine either way, I'm just curious)
Yes. 
Eclipse format happened to differ from git cl format.

Powered by Google App Engine
This is Rietveld 408576698