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

Issue 10933047: Use base::TimeDelta in SafeBrowsingProtocolManager. (Closed)

Created:
8 years, 3 months ago by cbentzel
Modified:
8 years, 3 months ago
Reviewers:
mattm
CC:
chromium-reviews
Visibility:
Public.

Description

Use base::TimeDelta in SafeBrowsingProtocolManager. There were a fair number of manual conversions from seconds and milliseconds, and this seemed safer. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156874

Patch Set 1 #

Patch Set 2 : Rename next_update_interval_ to base_update_interval_ to make it more clear #

Patch Set 3 : Go back to next_update_interval_ #

Patch Set 4 : Fix some call sites #

Total comments: 6

Patch Set 5 : React to mattm review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -55 lines) Patch
M chrome/browser/safe_browsing/protocol_manager.h View 2 3 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.cc View 1 2 3 4 6 chunks +30 lines, -28 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager_unittest.cc View 1 2 3 4 1 chunk +26 lines, -15 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_test.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
cbentzel
8 years, 3 months ago (2012-09-12 17:33:15 UTC) #1
mattm
http://codereview.chromium.org/10933047/diff/2003/chrome/browser/safe_browsing/protocol_manager.cc File chrome/browser/safe_browsing/protocol_manager.cc (right): http://codereview.chromium.org/10933047/diff/2003/chrome/browser/safe_browsing/protocol_manager.cc#newcode349 chrome/browser/safe_browsing/protocol_manager.cc:349: if (next_update_interval > base::TimeDelta::FromSeconds(0)) { These base::TimeDelta::FromSeconds(0)s could also ...
8 years, 3 months ago (2012-09-12 20:00:03 UTC) #2
cbentzel
http://codereview.chromium.org/10933047/diff/2003/chrome/browser/safe_browsing/protocol_manager.cc File chrome/browser/safe_browsing/protocol_manager.cc (right): http://codereview.chromium.org/10933047/diff/2003/chrome/browser/safe_browsing/protocol_manager.cc#newcode349 chrome/browser/safe_browsing/protocol_manager.cc:349: if (next_update_interval > base::TimeDelta::FromSeconds(0)) { On 2012/09/12 20:00:03, mattm ...
8 years, 3 months ago (2012-09-12 21:32:47 UTC) #3
mattm
lgtm
8 years, 3 months ago (2012-09-12 21:46:21 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cbentzel@chromium.org/10933047/9002
8 years, 3 months ago (2012-09-14 18:29:58 UTC) #5
commit-bot: I haz the power
8 years, 3 months ago (2012-09-14 20:26:56 UTC) #6
Change committed as 156874

Powered by Google App Engine
This is Rietveld 408576698