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

Issue 855633002: [Clean-up] Replace the final straggler use of MockTimeProvider with Clock. (Closed)

Created:
5 years, 11 months ago by Ilya Sherman
Modified:
5 years, 11 months ago
Reviewers:
tfarina, Nico, Peter Kasting
CC:
chromium-reviews, erikwright+watch_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Clean-up] Replace the final straggler use of MockTimeProvider with Clock. Clock is the newer interface; MockTimeProvider is deprecated. BUG=none TEST=unit_tests R=pkasting@chromium.org Committed: https://crrev.com/f44467004569a9c1c9743c93543ef356c2634665 Cr-Commit-Position: refs/heads/master@{#312786}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Restore position of moved code, and extract a helper function for comparing timestamps #

Total comments: 2

Patch Set 3 : Fix compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -131 lines) Patch
M base/base.gyp View 1 chunk +0 lines, -2 lines 0 comments Download
M base/test/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D base/test/mock_time_provider.h View 1 chunk +0 lines, -69 lines 0 comments Download
D base/test/mock_time_provider.cc View 1 chunk +0 lines, -31 lines 0 comments Download
M components/search_engines/template_url_service.h View 4 chunks +4 lines, -9 lines 0 comments Download
M components/search_engines/template_url_service.cc View 4 chunks +4 lines, -3 lines 0 comments Download
M components/search_engines/template_url_service_unittest.cc View 1 2 8 chunks +28 lines, -15 lines 0 comments Download

Messages

Total messages: 32 (11 generated)
Ilya Sherman
5 years, 11 months ago (2015-01-16 04:15:08 UTC) #1
tfarina
Thanks for putting this together Ilya. I gave up because I got tired of waiting ...
5 years, 11 months ago (2015-01-16 04:28:51 UTC) #3
Ilya Sherman
https://codereview.chromium.org/855633002/diff/1/components/search_engines/template_url_service_unittest.cc File components/search_engines/template_url_service_unittest.cc (right): https://codereview.chromium.org/855633002/diff/1/components/search_engines/template_url_service_unittest.cc#newcode312 components/search_engines/template_url_service_unittest.cc:312: scoped_ptr<base::SimpleTestClock> clock(new base::SimpleTestClock); On 2015/01/16 04:28:51, tfarina wrote: > ...
5 years, 11 months ago (2015-01-16 04:39:18 UTC) #4
tfarina
Just trying to undestand what I missed and the mistakes I made in my version. ...
5 years, 11 months ago (2015-01-16 05:01:39 UTC) #5
Ilya Sherman
https://codereview.chromium.org/855633002/diff/1/components/search_engines/template_url_service_unittest.cc File components/search_engines/template_url_service_unittest.cc (right): https://codereview.chromium.org/855633002/diff/1/components/search_engines/template_url_service_unittest.cc#newcode642 components/search_engines/template_url_service_unittest.cc:642: base::Time now = base::Time::Now(); On 2015/01/16 05:01:39, tfarina wrote: ...
5 years, 11 months ago (2015-01-16 05:11:07 UTC) #6
Ilya Sherman
Peter, ping
5 years, 11 months ago (2015-01-21 23:46:04 UTC) #7
Peter Kasting
Sorry, I had started looking at this when you originally sent it and somehow lost ...
5 years, 11 months ago (2015-01-22 00:00:23 UTC) #8
Ilya Sherman
https://chromiumcodereview.appspot.com/855633002/diff/1/components/search_engines/template_url_service_unittest.cc File components/search_engines/template_url_service_unittest.cc (right): https://chromiumcodereview.appspot.com/855633002/diff/1/components/search_engines/template_url_service_unittest.cc#newcode230 components/search_engines/template_url_service_unittest.cc:230: // Note that times are stored with a granularity ...
5 years, 11 months ago (2015-01-22 02:38:22 UTC) #9
Peter Kasting
https://chromiumcodereview.appspot.com/855633002/diff/1/components/search_engines/template_url_service_unittest.cc File components/search_engines/template_url_service_unittest.cc (right): https://chromiumcodereview.appspot.com/855633002/diff/1/components/search_engines/template_url_service_unittest.cc#newcode230 components/search_engines/template_url_service_unittest.cc:230: // Note that times are stored with a granularity ...
5 years, 11 months ago (2015-01-22 17:54:22 UTC) #10
Ilya Sherman
https://chromiumcodereview.appspot.com/855633002/diff/1/components/search_engines/template_url_service_unittest.cc File components/search_engines/template_url_service_unittest.cc (right): https://chromiumcodereview.appspot.com/855633002/diff/1/components/search_engines/template_url_service_unittest.cc#newcode230 components/search_engines/template_url_service_unittest.cc:230: // Note that times are stored with a granularity ...
5 years, 11 months ago (2015-01-22 23:13:11 UTC) #11
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/855633002/diff/20001/components/search_engines/template_url_service_unittest.cc File components/search_engines/template_url_service_unittest.cc (right): https://chromiumcodereview.appspot.com/855633002/diff/20001/components/search_engines/template_url_service_unittest.cc#newcode240 components/search_engines/template_url_service_unittest.cc:240: void TemplateURLServiceTest::AssertEquals(const base::Time& expected, This won't compile -- ...
5 years, 11 months ago (2015-01-22 23:16:07 UTC) #12
Ilya Sherman
https://chromiumcodereview.appspot.com/855633002/diff/20001/components/search_engines/template_url_service_unittest.cc File components/search_engines/template_url_service_unittest.cc (right): https://chromiumcodereview.appspot.com/855633002/diff/20001/components/search_engines/template_url_service_unittest.cc#newcode240 components/search_engines/template_url_service_unittest.cc:240: void TemplateURLServiceTest::AssertEquals(const base::Time& expected, On 2015/01/22 23:16:06, Peter Kasting ...
5 years, 11 months ago (2015-01-22 23:54:06 UTC) #14
Ilya Sherman
Nico, mind stamping for //base/* changes?
5 years, 11 months ago (2015-01-22 23:54:50 UTC) #17
Nico
base lgtm
5 years, 11 months ago (2015-01-23 00:00:40 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/855633002/40001
5 years, 11 months ago (2015-01-23 00:12:51 UTC) #22
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
5 years, 11 months ago (2015-01-23 02:16:14 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/855633002/40001
5 years, 11 months ago (2015-01-23 02:23:09 UTC) #26
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
5 years, 11 months ago (2015-01-23 04:25:14 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/855633002/40001
5 years, 11 months ago (2015-01-23 06:32:41 UTC) #30
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-23 06:33:41 UTC) #31
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 06:34:25 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f44467004569a9c1c9743c93543ef356c2634665
Cr-Commit-Position: refs/heads/master@{#312786}

Powered by Google App Engine
This is Rietveld 408576698