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

Issue 775893005: [AppList] Add a Suggestions Provider to applist. (Closed)

Created:
6 years ago by Mathieu
Modified:
6 years ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, asvitkine+watch_chromium.org, harryyu
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[AppList] Add a Suggestions Provider to applist. Only works with the null query, will return suggestions data if available (user is signed-in and suggestions are available for them). BUG=440487 TEST=SuggestionsSearchProviderTest Committed: https://crrev.com/04ef4a4d6e9303da91f432821d9601d49bdb6c02 Cr-Commit-Position: refs/heads/master@{#307761}

Patch Set 1 #

Total comments: 33

Patch Set 2 : Addressed comments #

Total comments: 24

Patch Set 3 : fixed test #

Total comments: 21

Patch Set 4 : addressed comments #

Total comments: 14

Patch Set 5 : final comments #

Patch Set 6 : test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -0 lines) Patch
M chrome/browser/ui/app_list/search/search_controller_factory.cc View 3 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/search/search_util.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.h View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc View 1 2 3 4 1 chunk +84 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider_unittest.cc View 1 2 3 4 5 1 chunk +141 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.h View 1 2 3 4 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.cc View 1 2 1 chunk +71 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/search/mixer.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/search/mixer.cc View 1 2 3 4 4 chunks +5 lines, -0 lines 0 comments Download
M ui/app_list/search_result.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/search_result.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/app_list/views/search_result_page_view_unittest.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (12 generated)
Mathieu
Preliminary look?
6 years ago (2014-12-03 20:13:51 UTC) #2
huangs
First scan. Maybe run Clang format? https://codereview.chromium.org/775893005/diff/1/chrome/browser/ui/app_list/search/search_controller_factory.cc File chrome/browser/ui/app_list/search/search_controller_factory.cc (right): https://codereview.chromium.org/775893005/diff/1/chrome/browser/ui/app_list/search/search_controller_factory.cc#newcode5 chrome/browser/ui/app_list/search/search_controller_factory.cc:5: #include "chrome/browser/ui/app_list/search/search_controller_factory.h" The ...
6 years ago (2014-12-03 20:36:12 UTC) #3
Roger McFarlane (Chromium)
On 2014/12/03 20:13:51, Mathieu Perreault wrote: > Preliminary look? Awesome! This looks good to me. ...
6 years ago (2014-12-03 20:37:06 UTC) #4
Roger McFarlane (Chromium)
https://codereview.chromium.org/775893005/diff/1/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc File chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc (right): https://codereview.chromium.org/775893005/diff/1/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc#newcode86 chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc:86: uber-nit: extra whitespace
6 years ago (2014-12-03 20:37:21 UTC) #5
Mathieu
+calamity (app_list) +asvitkine Hi, Please have a look! https://codereview.chromium.org/775893005/diff/1/chrome/browser/ui/app_list/search/search_controller_factory.cc File chrome/browser/ui/app_list/search/search_controller_factory.cc (right): https://codereview.chromium.org/775893005/diff/1/chrome/browser/ui/app_list/search/search_controller_factory.cc#newcode5 chrome/browser/ui/app_list/search/search_controller_factory.cc:5: #include ...
6 years ago (2014-12-03 21:01:31 UTC) #7
Mathieu
Ping to calamity@
6 years ago (2014-12-04 21:08:28 UTC) #8
Matt Giuca
One or both of calamity or myself will look at this today. (It's quite big ...
6 years ago (2014-12-04 23:15:22 UTC) #9
calamity
First pass, a couple of tough questions. It would be good to log a bug ...
6 years ago (2014-12-05 04:01:58 UTC) #10
Matt Giuca
Added a comment about use of Now() in tests. I'll have a better look at ...
6 years ago (2014-12-05 06:49:06 UTC) #12
Mathieu
Thanks, have a look! https://codereview.chromium.org/775893005/diff/20001/chrome/browser/ui/app_list/search/suggestions/suggestions_result.cc File chrome/browser/ui/app_list/search/suggestions/suggestions_result.cc (right): https://codereview.chromium.org/775893005/diff/20001/chrome/browser/ui/app_list/search/suggestions/suggestions_result.cc#newcode34 chrome/browser/ui/app_list/search/suggestions/suggestions_result.cc:34: if (index_) set_relevance(1.0 / index_); ...
6 years ago (2014-12-05 20:14:32 UTC) #17
Mathieu
On 2014/12/05 20:14:32, Mathieu Perreault wrote: > Thanks, have a look! > > https://codereview.chromium.org/775893005/diff/20001/chrome/browser/ui/app_list/search/suggestions/suggestions_result.cc > ...
6 years ago (2014-12-08 12:50:49 UTC) #18
Alexei Svitkine (slow)
histograms lgtm, didn't look at anything else
6 years ago (2014-12-08 15:41:53 UTC) #19
Matt Giuca
Hi Mathieu, Thanks for your patience and sorry I didn't get back to you sooner. ...
6 years ago (2014-12-09 05:34:55 UTC) #20
Matt Giuca
Oh, please file a bug for this feature if you have not already, and add ...
6 years ago (2014-12-09 05:35:43 UTC) #21
Mathieu
I think everything's addressed, thanks! https://codereview.chromium.org/775893005/diff/20001/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider_unittest.cc File chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider_unittest.cc (right): https://codereview.chromium.org/775893005/diff/20001/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider_unittest.cc#newcode41 chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider_unittest.cc:41: int64 now_usec = (base::Time::NowFromSystemTime() ...
6 years ago (2014-12-09 21:18:26 UTC) #22
Matt Giuca
lgtm https://codereview.chromium.org/775893005/diff/100001/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc File chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc (right): https://codereview.chromium.org/775893005/diff/100001/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc#newcode80 chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc:80: Add(result.Pass()); On 2014/12/09 21:18:26, Mathieu Perreault wrote: > ...
6 years ago (2014-12-10 01:47:34 UTC) #23
calamity
lgtm https://codereview.chromium.org/775893005/diff/20001/chrome/browser/ui/app_list/search/suggestions/suggestions_result.cc File chrome/browser/ui/app_list/search/suggestions/suggestions_result.cc (right): https://codereview.chromium.org/775893005/diff/20001/chrome/browser/ui/app_list/search/suggestions/suggestions_result.cc#newcode59 chrome/browser/ui/app_list/search/suggestions/suggestions_result.cc:59: } On 2014/12/05 20:14:32, Mathieu Perreault wrote: > ...
6 years ago (2014-12-10 01:47:43 UTC) #24
Matt Giuca
Thanks for putting this together, Mathieu. Looking forward to trying it!
6 years ago (2014-12-10 01:47:59 UTC) #25
huangs
LGTM with nitty comments. https://codereview.chromium.org/775893005/diff/120001/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc File chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc (right): https://codereview.chromium.org/775893005/diff/120001/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc#newcode76 chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc:76: scoped_ptr<URLSuggestionResult> result(new URLSuggestionResult( base/memory/scoped_ptr.h was ...
6 years ago (2014-12-10 07:14:04 UTC) #26
Mathieu
Addressed everything, will submit. https://codereview.chromium.org/775893005/diff/120001/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc File chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc (right): https://codereview.chromium.org/775893005/diff/120001/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc#newcode76 chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc:76: scoped_ptr<URLSuggestionResult> result(new URLSuggestionResult( On 2014/12/10 ...
6 years ago (2014-12-10 16:01:29 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/775893005/140001
6 years ago (2014-12-10 16:04:58 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/13264)
6 years ago (2014-12-10 17:07:18 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/775893005/160001
6 years ago (2014-12-10 19:21:03 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/13351)
6 years ago (2014-12-10 19:50:08 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/775893005/160001
6 years ago (2014-12-10 20:19:33 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:160001)
6 years ago (2014-12-10 21:16:45 UTC) #38
commit-bot: I haz the power
6 years ago (2014-12-10 21:17:37 UTC) #39
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/04ef4a4d6e9303da91f432821d9601d49bdb6c02
Cr-Commit-Position: refs/heads/master@{#307761}

Powered by Google App Engine
This is Rietveld 408576698