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

Issue 2648193002: SafeBrowsing: Move enabled_ to base class DB Manager (Closed)

Created:
3 years, 11 months ago by kcarattini
Modified:
3 years, 11 months ago
CC:
chromium-reviews, grt+watch_chromium.org, vakh+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Safe Browsing: Move enabled_ to the base DatabaseManager class. Moves the enabled_ member to the SafeBrowsingDatabaseManager base class and checks enabled_ in CheckApiBlacklistUrl(). Note that this changes the order in which enabled_ gets set in some of the subclasses. BUG=683791 Review-Url: https://codereview.chromium.org/2648193002 Cr-Commit-Position: refs/heads/master@{#445913} Committed: https://chromium.googlesource.com/chromium/src/+/f0fa01b10bf10faae9ac8ff604a91c6130377491

Patch Set 1 #

Patch Set 2 : Fix compile error #

Total comments: 2

Patch Set 3 : Only subclasses set enabled_ #

Total comments: 2

Patch Set 4 : Update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -18 lines) Patch
M chrome/browser/safe_browsing/local_database_manager.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/local_database_manager.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M components/safe_browsing_db/database_manager.h View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download
M components/safe_browsing_db/database_manager.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M components/safe_browsing_db/remote_database_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/safe_browsing_db/remote_database_manager.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M components/safe_browsing_db/test_database_manager.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/safe_browsing_db/test_database_manager.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.h View 1 chunk +0 lines, -3 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 31 (21 generated)
kcarattini
3 years, 11 months ago (2017-01-23 05:25:11 UTC) #5
vakh (use Gerrit instead)
Hey Kendra, PVer4 is already running in Dev and Canary (50%). If your work isn't ...
3 years, 11 months ago (2017-01-23 16:02:49 UTC) #15
kcarattini
Hi, I'm not sure what you mean by move to pver4 code -- do you ...
3 years, 11 months ago (2017-01-23 18:23:59 UTC) #16
Nathan Parker
I think we should land this fix now rather than waiting for Pver4, since as-is ...
3 years, 11 months ago (2017-01-23 23:32:34 UTC) #17
kcarattini
https://codereview.chromium.org/2648193002/diff/20001/chrome/browser/safe_browsing/local_database_manager.cc File chrome/browser/safe_browsing/local_database_manager.cc (right): https://codereview.chromium.org/2648193002/diff/20001/chrome/browser/safe_browsing/local_database_manager.cc#newcode701 chrome/browser/safe_browsing/local_database_manager.cc:701: SafeBrowsingDatabaseManager::StopOnIOThread(shutdown); On 2017/01/23 23:32:34, Nathan Parker wrote: > I ...
3 years, 11 months ago (2017-01-24 03:21:23 UTC) #18
vakh (use Gerrit instead)
lgtm
3 years, 11 months ago (2017-01-24 21:51:36 UTC) #23
Nathan Parker
Cool! LGTM https://codereview.chromium.org/2648193002/diff/40001/components/safe_browsing_db/database_manager.h File components/safe_browsing_db/database_manager.h (right): https://codereview.chromium.org/2648193002/diff/40001/components/safe_browsing_db/database_manager.h#newcode200 components/safe_browsing_db/database_manager.h:200: // override this method and set enabled_ ...
3 years, 11 months ago (2017-01-24 22:51:03 UTC) #24
kcarattini
Thanks! https://codereview.chromium.org/2648193002/diff/40001/components/safe_browsing_db/database_manager.h File components/safe_browsing_db/database_manager.h (right): https://codereview.chromium.org/2648193002/diff/40001/components/safe_browsing_db/database_manager.h#newcode200 components/safe_browsing_db/database_manager.h:200: // override this method and set enabled_ to ...
3 years, 11 months ago (2017-01-25 00:19:00 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2648193002/60001
3 years, 11 months ago (2017-01-25 00:19:59 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 02:18:24 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/f0fa01b10bf10faae9ac8ff604a9...

Powered by Google App Engine
This is Rietveld 408576698