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

Issue 1944433002: Make V4GetHashProtocolManager::RegisterFactory safe. (Closed)

Created:
4 years, 7 months ago by Reilly Grant (use Gerrit)
Modified:
4 years, 7 months ago
CC:
bruening+watch_chromium.org, chromium-reviews, glider+watch_chromium.org, kcarattini
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make V4GetHashProtocolManager::RegisterFactory safe. This patch makes V4GetHashProtocolManager::RegisterFactory safe by passing ownership of the testing factory and making sure it is cleared before the next test is run. BUG=608053 Committed: https://crrev.com/3ea614851dc01884f58559b520c5a013a9beb2e2 Cr-Commit-Position: refs/heads/master@{#391339}

Patch Set 1 #

Patch Set 2 : Re-enable the right tests. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -12 lines) Patch
M components/safe_browsing_db/database_manager_unittest.cc View 3 chunks +4 lines, -2 lines 4 comments Download
M components/safe_browsing_db/v4_get_hash_protocol_manager.h View 1 chunk +2 lines, -3 lines 0 comments Download
M components/safe_browsing_db/v4_get_hash_protocol_manager.cc View 1 chunk +8 lines, -0 lines 2 comments Download
M tools/valgrind/drmemory/suppressions.txt View 1 chunk +0 lines, -4 lines 0 comments Download
M tools/valgrind/gtest_exclude/components_unittests.gtest-drmemory_win32.txt View 1 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Reilly Grant (use Gerrit)
Matt, please take a look.
4 years, 7 months ago (2016-05-02 21:43:06 UTC) #2
mattm
Adding Nathan and Kendra from the original CL. https://codereview.chromium.org/1944433002/diff/20001/components/safe_browsing_db/database_manager_unittest.cc File components/safe_browsing_db/database_manager_unittest.cc (right): https://codereview.chromium.org/1944433002/diff/20001/components/safe_browsing_db/database_manager_unittest.cc#newcode122 components/safe_browsing_db/database_manager_unittest.cc:122: base::WrapUnique(new ...
4 years, 7 months ago (2016-05-02 22:36:53 UTC) #4
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1944433002/diff/20001/components/safe_browsing_db/database_manager_unittest.cc File components/safe_browsing_db/database_manager_unittest.cc (right): https://codereview.chromium.org/1944433002/diff/20001/components/safe_browsing_db/database_manager_unittest.cc#newcode122 components/safe_browsing_db/database_manager_unittest.cc:122: base::WrapUnique(new TestV4GetHashProtocolManagerFactory())); On 2016/05/02 at 22:36:53, mattm wrote: > ...
4 years, 7 months ago (2016-05-02 22:55:27 UTC) #5
kcarattini
LGTM Thank you for finding and fixing this! https://codereview.chromium.org/1944433002/diff/20001/components/safe_browsing_db/database_manager_unittest.cc File components/safe_browsing_db/database_manager_unittest.cc (right): https://codereview.chromium.org/1944433002/diff/20001/components/safe_browsing_db/database_manager_unittest.cc#newcode122 components/safe_browsing_db/database_manager_unittest.cc:122: base::WrapUnique(new ...
4 years, 7 months ago (2016-05-03 01:16:32 UTC) #6
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1944433002/diff/20001/components/safe_browsing_db/database_manager_unittest.cc File components/safe_browsing_db/database_manager_unittest.cc (right): https://codereview.chromium.org/1944433002/diff/20001/components/safe_browsing_db/database_manager_unittest.cc#newcode122 components/safe_browsing_db/database_manager_unittest.cc:122: base::WrapUnique(new TestV4GetHashProtocolManagerFactory())); On 2016/05/03 at 01:16:32, kcarattini wrote: > ...
4 years, 7 months ago (2016-05-03 01:18:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1944433002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1944433002/20001
4 years, 7 months ago (2016-05-03 01:18:45 UTC) #9
Reilly Grant (use Gerrit)
mattm/nparker, I can't check this in without a review from one of you.
4 years, 7 months ago (2016-05-03 17:48:15 UTC) #11
Nathan Parker
lgtm
4 years, 7 months ago (2016-05-03 19:06:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1944433002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1944433002/20001
4 years, 7 months ago (2016-05-03 19:13:37 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-03 20:17:25 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 20:18:50 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3ea614851dc01884f58559b520c5a013a9beb2e2
Cr-Commit-Position: refs/heads/master@{#391339}

Powered by Google App Engine
This is Rietveld 408576698