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

Issue 789623003: Use base::Clock instead of base::Time::Now in AppSearchProvider. (Closed)

Created:
6 years ago by calamity
Modified:
6 years ago
Reviewers:
Matt Giuca
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@now_source
Project:
chromium
Visibility:
Public.

Description

Use base::Clock instead of base::Time::Now in AppSearchProvider. This CL converts AppSearchProvider to use base::Clock which allows for a easier testing of AppSearchProvider. This CL also fixes an issue which was revealed during this conversion and adds a test. BUG=440286 Committed: https://crrev.com/72837d96cf95f1bca49e9357b16172ad4b1a2202 Cr-Commit-Position: refs/heads/master@{#308053}

Patch Set 1 : #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Total comments: 6

Patch Set 4 : address_comments #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -22 lines) Patch
M chrome/browser/ui/app_list/search/app_result.cc View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/search/app_search_provider.h View 1 2 5 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/app_list/search/app_search_provider.cc View 1 2 3 5 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/ui/app_list/search/app_search_provider_unittest.cc View 1 2 3 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/search/search_controller_factory.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
calamity
6 years ago (2014-12-09 07:08:48 UTC) #2
calamity
This is now reviewable.
6 years ago (2014-12-10 06:53:38 UTC) #4
Matt Giuca
lgtm https://codereview.chromium.org/789623003/diff/60001/chrome/browser/ui/app_list/search/app_result.cc File chrome/browser/ui/app_list/search/app_result.cc (right): https://codereview.chromium.org/789623003/diff/60001/chrome/browser/ui/app_list/search/app_result.cc#newcode84 chrome/browser/ui/app_list/search/app_result.cc:84: if (current_time < last_launched) { This certainly needs ...
6 years ago (2014-12-10 07:16:12 UTC) #5
calamity
https://codereview.chromium.org/789623003/diff/60001/chrome/browser/ui/app_list/search/app_result.cc File chrome/browser/ui/app_list/search/app_result.cc (right): https://codereview.chromium.org/789623003/diff/60001/chrome/browser/ui/app_list/search/app_result.cc#newcode84 chrome/browser/ui/app_list/search/app_result.cc:84: if (current_time < last_launched) { On 2014/12/10 07:16:12, Matt ...
6 years ago (2014-12-11 05:05:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789623003/80001
6 years ago (2014-12-11 05:05:26 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/92778) ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/41035) ios_rel_device ...
6 years ago (2014-12-11 05:09:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789623003/100001
6 years ago (2014-12-12 03:05:14 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:100001)
6 years ago (2014-12-12 04:59:27 UTC) #13
commit-bot: I haz the power
6 years ago (2014-12-12 05:00:14 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/72837d96cf95f1bca49e9357b16172ad4b1a2202
Cr-Commit-Position: refs/heads/master@{#308053}

Powered by Google App Engine
This is Rietveld 408576698