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

Unified Diff: components/safe_browsing_db/v4_update_protocol_manager.cc

Issue 1845643002: Initialize next_update_time_ to allow immediate updating (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize next_update_time_ with time=0 instead of now-1 Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/safe_browsing_db/v4_update_protocol_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/v4_update_protocol_manager.cc
diff --git a/components/safe_browsing_db/v4_update_protocol_manager.cc b/components/safe_browsing_db/v4_update_protocol_manager.cc
index c5dbfb5c2c88ae317e66b4a6283c306261e84c8b..96869c8e94c98e7ff53fce10087d4770536d9dbc 100644
--- a/components/safe_browsing_db/v4_update_protocol_manager.cc
+++ b/components/safe_browsing_db/v4_update_protocol_manager.cc
@@ -101,7 +101,7 @@ V4UpdateProtocolManager::V4UpdateProtocolManager(
const V4ProtocolConfig& config)
: update_error_count_(0),
update_back_off_mult_(1),
- next_update_time_(Time::Now()),
+ next_update_time_(base::Time()),
config_(config),
request_context_getter_(request_context_getter),
url_fetcher_id_(0) {}
« no previous file with comments | « no previous file | components/safe_browsing_db/v4_update_protocol_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698