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 423133003: [Suggestions Service] Add support for expiring the SuggestionsStore (Closed)

Created:
6 years, 4 months ago by gayane -on leave until 09-2017
Modified:
6 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

SuggestionsStore should take the suggestion's expiry timestamp into consideration. ----------------------------------------------------------- 1. filter expired suggestions before loading from cache 2. assign default expiry timestamps (now + 72 hours), to those ones which don't have expiry timestamps, before storing in cache BUG=387926 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288375

Patch Set 1 : Expiry timestamps for suggestions #

Total comments: 92

Patch Set 2 : Coding style fixes and refactoring #

Total comments: 46

Patch Set 3 : more coding style changes and refactoring #

Total comments: 20

Patch Set 4 : more fixes #

Total comments: 34

Patch Set 5 : Some fixes. Test class for SuggestionStoreTest #

Total comments: 4

Patch Set 6 : minor changes and test improvement #

Patch Set 7 : Test improvement: scoped_ptr for SuggestionsStore object in unittests #

Total comments: 14

Patch Set 8 : Last changes. #

Patch Set 9 : unittest fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -15 lines) Patch
M chrome/browser/search/suggestions/suggestions_source.cc View 1 2 3 4 5 6 7 3 chunks +16 lines, -1 line 0 comments Download
M components/suggestions/proto/suggestions.proto View 1 chunk +3 lines, -0 lines 0 comments Download
M components/suggestions/suggestions_service.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M components/suggestions/suggestions_service.cc View 1 2 3 4 5 6 7 4 chunks +20 lines, -1 line 0 comments Download
M components/suggestions/suggestions_service_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +28 lines, -2 lines 0 comments Download
M components/suggestions/suggestions_store.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/suggestions/suggestions_store.cc View 1 2 3 4 5 6 7 2 chunks +30 lines, -0 lines 0 comments Download
M components/suggestions/suggestions_store_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +91 lines, -11 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
manzagop (departed)
Looking good! Don't mind the high number of comments, it's mostly all about formatting and ...
6 years, 4 months ago (2014-07-31 15:31:53 UTC) #1
gayane -on leave until 09-2017
Thanks Pierre-Antoine for the feedback. I have fix most of them. Some of them I ...
6 years, 4 months ago (2014-08-04 13:46:32 UTC) #2
Mathieu
Here are my comments! https://codereview.chromium.org/423133003/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc File chrome/browser/search/suggestions/suggestions_source.cc (right): https://codereview.chromium.org/423133003/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc#newcode39 chrome/browser/search/suggestions/suggestions_source.cc:39: std::string FormatTimeDelta(int64 time_delta_usec){ I searched ...
6 years, 4 months ago (2014-08-04 14:39:11 UTC) #3
gayane -on leave until 09-2017
fixed most if the comments except ToJavaTime(). See comments bellow. https://codereview.chromium.org/423133003/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc File chrome/browser/search/suggestions/suggestions_source.cc (right): https://codereview.chromium.org/423133003/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc#newcode39 ...
6 years, 4 months ago (2014-08-04 16:34:59 UTC) #4
Mathieu
Mostly nits, have a look! https://codereview.chromium.org/423133003/diff/60001/chrome/browser/search/suggestions/suggestions_source.cc File chrome/browser/search/suggestions/suggestions_source.cc (right): https://codereview.chromium.org/423133003/diff/60001/chrome/browser/search/suggestions/suggestions_source.cc#newcode58 chrome/browser/search/suggestions/suggestions_source.cc:58: int64 diff = (suggestion.expiry_ts() ...
6 years, 4 months ago (2014-08-04 18:29:22 UTC) #5
Mathieu
On 2014/08/04 18:29:22, Mathieu Perreault wrote: > Mostly nits, have a look! > > https://codereview.chromium.org/423133003/diff/60001/chrome/browser/search/suggestions/suggestions_source.cc ...
6 years, 4 months ago (2014-08-04 18:46:12 UTC) #6
chromium-reviews
Do you want to have that sentence somewhere in the description or you want to ...
6 years, 4 months ago (2014-08-04 18:56:41 UTC) #7
manzagop (departed)
Almost there! https://codereview.chromium.org/423133003/diff/60001/chrome/browser/search/suggestions/suggestions_source.cc File chrome/browser/search/suggestions/suggestions_source.cc (right): https://codereview.chromium.org/423133003/diff/60001/chrome/browser/search/suggestions/suggestions_source.cc#newcode53 chrome/browser/search/suggestions/suggestions_source.cc:53: int cutoff = -1; // forces two-value ...
6 years, 4 months ago (2014-08-04 19:02:59 UTC) #8
chromium-reviews
The title should be something like the one I wrote. The rest is OK. Note ...
6 years, 4 months ago (2014-08-04 19:03:05 UTC) #9
gayane -on leave until 09-2017
here is it https://codereview.chromium.org/423133003/diff/60001/chrome/browser/search/suggestions/suggestions_source.cc File chrome/browser/search/suggestions/suggestions_source.cc (right): https://codereview.chromium.org/423133003/diff/60001/chrome/browser/search/suggestions/suggestions_source.cc#newcode53 chrome/browser/search/suggestions/suggestions_source.cc:53: int cutoff = -1; // forces ...
6 years, 4 months ago (2014-08-04 19:26:44 UTC) #10
manzagop (departed)
A few more! https://codereview.chromium.org/423133003/diff/80001/components/suggestions/suggestions_service_unittest.cc File components/suggestions/suggestions_service_unittest.cc (right): https://codereview.chromium.org/423133003/diff/80001/components/suggestions/suggestions_service_unittest.cc#newcode518 components/suggestions/suggestions_service_unittest.cc:518: extra line https://codereview.chromium.org/423133003/diff/80001/components/suggestions/suggestions_service_unittest.cc#newcode529 components/suggestions/suggestions_service_unittest.cc:529: EXPECT_NE(suggestions.suggestions(0).expiry_ts(), default_timestamp_usec); ...
6 years, 4 months ago (2014-08-04 19:50:26 UTC) #11
Mathieu
Suggestions to improve tests https://codereview.chromium.org/423133003/diff/80001/components/suggestions/suggestions_service.cc File components/suggestions/suggestions_service.cc (right): https://codereview.chromium.org/423133003/diff/80001/components/suggestions/suggestions_service.cc#newcode104 components/suggestions/suggestions_service.cc:104: const int64 kDefaultExpiryUsec = 72 ...
6 years, 4 months ago (2014-08-04 19:54:55 UTC) #12
gayane -on leave until 09-2017
https://codereview.chromium.org/423133003/diff/80001/components/suggestions/suggestions_service.cc File components/suggestions/suggestions_service.cc (right): https://codereview.chromium.org/423133003/diff/80001/components/suggestions/suggestions_service.cc#newcode104 components/suggestions/suggestions_service.cc:104: const int64 kDefaultExpiryUsec = 72 * base::Time::kMicrosecondsPerHour; On 2014/08/04 ...
6 years, 4 months ago (2014-08-05 14:39:16 UTC) #13
manzagop (departed)
A few more comments. https://codereview.chromium.org/423133003/diff/80001/components/suggestions/suggestions_store_unittest.cc File components/suggestions/suggestions_store_unittest.cc (right): https://codereview.chromium.org/423133003/diff/80001/components/suggestions/suggestions_store_unittest.cc#newcode8 components/suggestions/suggestions_store_unittest.cc:8: On 2014/08/05 14:39:15, gayane wrote: ...
6 years, 4 months ago (2014-08-05 15:30:26 UTC) #14
gayane -on leave until 09-2017
https://codereview.chromium.org/423133003/diff/80001/components/suggestions/suggestions_store_unittest.cc File components/suggestions/suggestions_store_unittest.cc (right): https://codereview.chromium.org/423133003/diff/80001/components/suggestions/suggestions_store_unittest.cc#newcode8 components/suggestions/suggestions_store_unittest.cc:8: On 2014/08/05 15:30:26, manzagop wrote: > On 2014/08/05 14:39:15, ...
6 years, 4 months ago (2014-08-06 14:40:55 UTC) #15
gayane -on leave until 09-2017
https://codereview.chromium.org/423133003/diff/80001/components/suggestions/suggestions_store_unittest.cc File components/suggestions/suggestions_store_unittest.cc (right): https://codereview.chromium.org/423133003/diff/80001/components/suggestions/suggestions_store_unittest.cc#newcode78 components/suggestions/suggestions_store_unittest.cc:78: TestingPrefServiceSyncable prefs; On 2014/08/04 19:54:55, Mathieu Perreault wrote: > ...
6 years, 4 months ago (2014-08-06 15:05:28 UTC) #16
Mathieu
lgtm, wait for Pierre-Antoine's approval too, please :) https://codereview.chromium.org/423133003/diff/140001/components/suggestions/suggestions_service.cc File components/suggestions/suggestions_service.cc (right): https://codereview.chromium.org/423133003/diff/140001/components/suggestions/suggestions_service.cc#newcode104 components/suggestions/suggestions_service.cc:104: // ...
6 years, 4 months ago (2014-08-06 15:23:54 UTC) #17
manzagop (departed)
LGTM with nits Well done! https://codereview.chromium.org/423133003/diff/140001/chrome/browser/search/suggestions/suggestions_source.cc File chrome/browser/search/suggestions/suggestions_source.cc (right): https://codereview.chromium.org/423133003/diff/140001/chrome/browser/search/suggestions/suggestions_source.cc#newcode55 chrome/browser/search/suggestions/suggestions_source.cc:55: base::TimeDelta td = base::TimeDelta::FromMicroseconds( ...
6 years, 4 months ago (2014-08-06 19:11:19 UTC) #18
gayane -on leave until 09-2017
last changes https://codereview.chromium.org/423133003/diff/140001/chrome/browser/search/suggestions/suggestions_source.cc File chrome/browser/search/suggestions/suggestions_source.cc (right): https://codereview.chromium.org/423133003/diff/140001/chrome/browser/search/suggestions/suggestions_source.cc#newcode55 chrome/browser/search/suggestions/suggestions_source.cc:55: base::TimeDelta td = base::TimeDelta::FromMicroseconds( On 2014/08/06 19:11:18, ...
6 years, 4 months ago (2014-08-06 21:12:20 UTC) #19
gayane -on leave until 09-2017
The CQ bit was checked by gayane@chromium.org
6 years, 4 months ago (2014-08-06 21:12:31 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gayane@chromium.org/423133003/160001
6 years, 4 months ago (2014-08-06 21:13:35 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-07 02:02:19 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-07 02:24:07 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_triggered_tests/builds/3162)
6 years, 4 months ago (2014-08-07 02:24:09 UTC) #24
manzagop (departed)
The CQ bit was checked by manzagop@chromium.org
6 years, 4 months ago (2014-08-07 13:04:46 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gayane@chromium.org/423133003/160001
6 years, 4 months ago (2014-08-07 13:05:16 UTC) #26
manzagop (departed)
The CQ bit was unchecked by manzagop@chromium.org
6 years, 4 months ago (2014-08-07 13:05:33 UTC) #27
manzagop (departed)
Looks like there are actual errors, perhaps related to the old tests and the addition ...
6 years, 4 months ago (2014-08-07 13:09:10 UTC) #28
gayane -on leave until 09-2017
The CQ bit was checked by gayane@chromium.org
6 years, 4 months ago (2014-08-08 13:55:12 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gayane@chromium.org/423133003/180001
6 years, 4 months ago (2014-08-08 13:57:25 UTC) #30
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 16:38:35 UTC) #31
Message was sent while issue was closed.
Change committed as 288375

Powered by Google App Engine
This is Rietveld 408576698