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

Issue 1848973004: Makes V4UpdateProtocolManager auto-schedule update fetching (Closed)

Created:
4 years, 8 months ago by vakh (use Gerrit instead)
Modified:
4 years, 8 months ago
Reviewers:
Nathan Parker
CC:
chromium-reviews, grt+watch_chromium.org, awoz, kcarattini, mattm
Base URL:
https://chromium.googlesource.com/chromium/src.git@v4_01_
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Makes V4UpdateProtocolManager auto-schedule update fetching V4UpdateProtocolManager now takes the current status of the lists at instantiation and auto-schedules updates for those lists throughout its lifetime. It also takes a callback method which is called after each successful update. TODOs: Timeout, callback implementation is empty, backoff tests ... BUG=543161 Committed: https://crrev.com/d9fe40cf5b17eb771b37837b3b1a198ef109669a Cr-Commit-Position: refs/heads/master@{#384704}

Patch Set 1 #

Patch Set 2 : git fetch && git pull && gclient sync #

Patch Set 3 : formatting and removed ClearCurrentListStates from test #

Total comments: 30

Patch Set 4 : Incorporate review feedback. #

Patch Set 5 : Delete v4_update_protocol_manager_ on IO thread stop. And fix BUILD.gn #

Total comments: 4

Patch Set 6 : Do not instantiate v4_update_protocol_manager_ in local_db_m #

Patch Set 7 : git fetch && git pull && gclient sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -298 lines) Patch
M chrome/browser/safe_browsing/local_database_manager.h View 1 2 3 4 5 5 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/safe_browsing/local_database_manager.cc View 1 2 3 4 5 23 chunks +49 lines, -76 lines 0 comments Download
M components/safe_browsing_db/BUILD.gn View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M components/safe_browsing_db/database_manager.h View 2 chunks +0 lines, -2 lines 0 comments Download
M components/safe_browsing_db/database_manager.cc View 4 chunks +1 line, -13 lines 0 comments Download
M components/safe_browsing_db/v4_protocol_manager_util.h View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M components/safe_browsing_db/v4_protocol_manager_util.cc View 1 2 3 chunks +13 lines, -10 lines 0 comments Download
M components/safe_browsing_db/v4_update_protocol_manager.h View 1 2 3 7 chunks +60 lines, -42 lines 0 comments Download
M components/safe_browsing_db/v4_update_protocol_manager.cc View 1 2 3 9 chunks +105 lines, -64 lines 0 comments Download
M components/safe_browsing_db/v4_update_protocol_manager_unittest.cc View 1 2 3 4 5 4 chunks +113 lines, -82 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
vakh (use Gerrit instead)
git fetch && git pull && gclient sync
4 years, 8 months ago (2016-03-31 21:47:05 UTC) #1
vakh (use Gerrit instead)
4 years, 8 months ago (2016-03-31 22:07:25 UTC) #3
vakh (use Gerrit instead)
formatting and removed ClearCurrentListStates from test
4 years, 8 months ago (2016-03-31 22:49:04 UTC) #4
vakh (use Gerrit instead)
4 years, 8 months ago (2016-03-31 23:54:11 UTC) #5
Nathan Parker
https://codereview.chromium.org/1848973004/diff/40001/chrome/browser/safe_browsing/local_database_manager.h File chrome/browser/safe_browsing/local_database_manager.h (right): https://codereview.chromium.org/1848973004/diff/40001/chrome/browser/safe_browsing/local_database_manager.h#newcode391 chrome/browser/safe_browsing/local_database_manager.h:391: base::hash_map<UpdateListIdentifier, std::string> current_list_states_; Do you want this in the ...
4 years, 8 months ago (2016-04-01 01:04:53 UTC) #6
vakh (use Gerrit instead)
Incorporate review feedback.
4 years, 8 months ago (2016-04-01 02:09:12 UTC) #7
vakh (use Gerrit instead)
Delete v4_update_protocol_manager_ on IO thread stop. And fix BUILD.gn
4 years, 8 months ago (2016-04-01 02:21:54 UTC) #8
vakh (use Gerrit instead)
Thanks for the review. PTAL. https://codereview.chromium.org/1848973004/diff/40001/components/safe_browsing_db/database_manager.h File components/safe_browsing_db/database_manager.h (right): https://codereview.chromium.org/1848973004/diff/40001/components/safe_browsing_db/database_manager.h#newcode179 components/safe_browsing_db/database_manager.h:179: V4GetHashProtocolManager* v4_get_hash_protocol_manager_; On 2016/04/01 ...
4 years, 8 months ago (2016-04-01 02:23:02 UTC) #9
vakh (use Gerrit instead)
https://codereview.chromium.org/1848973004/diff/40001/chrome/browser/safe_browsing/local_database_manager.h File chrome/browser/safe_browsing/local_database_manager.h (right): https://codereview.chromium.org/1848973004/diff/40001/chrome/browser/safe_browsing/local_database_manager.h#newcode391 chrome/browser/safe_browsing/local_database_manager.h:391: base::hash_map<UpdateListIdentifier, std::string> current_list_states_; On 2016/04/01 01:04:52, Nathan Parker wrote: ...
4 years, 8 months ago (2016-04-01 02:29:09 UTC) #10
Nathan Parker
https://codereview.chromium.org/1848973004/diff/40001/chrome/browser/safe_browsing/local_database_manager.h File chrome/browser/safe_browsing/local_database_manager.h (right): https://codereview.chromium.org/1848973004/diff/40001/chrome/browser/safe_browsing/local_database_manager.h#newcode391 chrome/browser/safe_browsing/local_database_manager.h:391: base::hash_map<UpdateListIdentifier, std::string> current_list_states_; On 2016/04/01 02:29:09, vakh wrote: > ...
4 years, 8 months ago (2016-04-01 17:56:59 UTC) #12
vakh (use Gerrit instead)
Do not instantiate v4_update_protocol_manager_ in local_db_m
4 years, 8 months ago (2016-04-01 19:35:20 UTC) #13
vakh (use Gerrit instead)
https://codereview.chromium.org/1848973004/diff/40001/chrome/browser/safe_browsing/local_database_manager.h File chrome/browser/safe_browsing/local_database_manager.h (right): https://codereview.chromium.org/1848973004/diff/40001/chrome/browser/safe_browsing/local_database_manager.h#newcode391 chrome/browser/safe_browsing/local_database_manager.h:391: base::hash_map<UpdateListIdentifier, std::string> current_list_states_; On 2016/04/01 17:56:58, Nathan Parker wrote: ...
4 years, 8 months ago (2016-04-01 19:35:48 UTC) #14
vakh (use Gerrit instead)
git fetch && git pull && gclient sync
4 years, 8 months ago (2016-04-01 20:00:16 UTC) #15
Nathan Parker
lgtm
4 years, 8 months ago (2016-04-01 21:44:55 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1848973004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1848973004/120001
4 years, 8 months ago (2016-04-01 21:52:35 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 8 months ago (2016-04-01 22:10:12 UTC) #20
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 22:13:37 UTC) #22
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d9fe40cf5b17eb771b37837b3b1a198ef109669a
Cr-Commit-Position: refs/heads/master@{#384704}

Powered by Google App Engine
This is Rietveld 408576698