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

Issue 8573018: Convert to base::Callback in safe_browsing client-side-detection code. (Closed)

Created:
9 years, 1 month ago by Scott Hess - ex-Googler
Modified:
9 years, 1 month ago
Reviewers:
noelutz, awong, Brian Ryner
CC:
chromium-reviews, brettw-cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., awong
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Convert to base::Callback in safe_browsing client-side-detection code. Convert callbacks to base::Callback: PhishingTermFeatureExtractor::DoneCallback PhishingDOMFeatureExtractor::DoneCallback ClientSideDetectionService::ClientReportPhishingRequestCallback BrowserFeatureExtractor::DoneCallback PhishingClassifier::DoneCallback Convert ClientSideDetectionHost::cb_factory_ to base::WeakPtrFactory. Also some easy NewRunnableMethod->base::Bind() conversions in client_side_detection_host.cc. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111263

Patch Set 1 #

Total comments: 5

Patch Set 2 : Don't call Run() on null callbacks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -173 lines) Patch
M chrome/browser/safe_browsing/browser_feature_extractor.h View 7 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/safe_browsing/browser_feature_extractor.cc View 11 chunks +24 lines, -32 lines 0 comments Download
M chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host.cc View 1 7 chunks +13 lines, -14 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host_unittest.cc View 1 19 chunks +32 lines, -37 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.cc View 1 7 chunks +12 lines, -15 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier.cc View 7 chunks +12 lines, -9 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_browsertest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc View 11 chunks +10 lines, -20 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_dom_feature_extractor.h View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc View 4 chunks +7 lines, -7 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/safe_browsing/phishing_term_feature_extractor.h View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_term_feature_extractor.cc View 4 chunks +7 lines, -7 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_term_feature_extractor_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Scott Hess - ex-Googler
No preference as to reviewer, but I'm also not sure who's most appropriate... My git ...
9 years, 1 month ago (2011-11-15 22:49:12 UTC) #1
noelutz
On 2011/11/15 22:49:12, shess wrote: > No preference as to reviewer, but I'm also not ...
9 years, 1 month ago (2011-11-15 23:06:32 UTC) #2
noelutz
I might be slightly slow though. I'm trying to land something this week. If it's ...
9 years, 1 month ago (2011-11-15 23:16:17 UTC) #3
Scott Hess - ex-Googler
On 2011/11/15 23:16:17, noelutz wrote: > I might be slightly slow though. I'm trying to ...
9 years, 1 month ago (2011-11-15 23:24:00 UTC) #4
Scott Hess - ex-Googler
Do you think either of you can get to this this week? As I mentioned ...
9 years, 1 month ago (2011-11-21 21:42:27 UTC) #5
noelutz
Looks really good. I just have one comment. Thanks, noe. http://codereview.chromium.org/8573018/diff/1/chrome/browser/safe_browsing/client_side_detection_service.cc File chrome/browser/safe_browsing/client_side_detection_service.cc (right): http://codereview.chromium.org/8573018/diff/1/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode289 ...
9 years, 1 month ago (2011-11-21 21:46:05 UTC) #6
awong
Sorry for the latency...somehow I missed this in my dashboard. I just have one confirmation ...
9 years, 1 month ago (2011-11-21 21:59:00 UTC) #7
noelutz
http://codereview.chromium.org/8573018/diff/1/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): http://codereview.chromium.org/8573018/diff/1/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode404 chrome/browser/safe_browsing/client_side_detection_host.cc:404: weak_factory_.GetWeakPtr())); On 2011/11/21 21:59:00, awong wrote: > To confirm, ...
9 years, 1 month ago (2011-11-21 22:13:51 UTC) #8
Scott Hess - ex-Googler
http://codereview.chromium.org/8573018/diff/1/chrome/browser/safe_browsing/client_side_detection_service.cc File chrome/browser/safe_browsing/client_side_detection_service.cc (right): http://codereview.chromium.org/8573018/diff/1/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode289 chrome/browser/safe_browsing/client_side_detection_service.cc:289: const ClientReportPhishingRequestCallback& callback) { On 2011/11/21 21:46:05, noelutz wrote: ...
9 years, 1 month ago (2011-11-21 22:15:20 UTC) #9
noelutz
http://codereview.chromium.org/8573018/diff/1/chrome/browser/safe_browsing/client_side_detection_service.cc File chrome/browser/safe_browsing/client_side_detection_service.cc (right): http://codereview.chromium.org/8573018/diff/1/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode289 chrome/browser/safe_browsing/client_side_detection_service.cc:289: const ClientReportPhishingRequestCallback& callback) { On 2011/11/21 22:15:20, shess wrote: ...
9 years, 1 month ago (2011-11-21 22:24:00 UTC) #10
Scott Hess - ex-Googler
On 2011/11/21 22:24:00, noelutz wrote: > http://codereview.chromium.org/8573018/diff/1/chrome/browser/safe_browsing/client_side_detection_service.cc > File chrome/browser/safe_browsing/client_side_detection_service.cc (right): > > http://codereview.chromium.org/8573018/diff/1/chrome/browser/safe_browsing/client_side_detection_service.cc#newcode289 > ...
9 years, 1 month ago (2011-11-21 23:40:10 UTC) #11
noelutz
lgtm
9 years, 1 month ago (2011-11-22 00:18:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/8573018/10003
9 years, 1 month ago (2011-11-22 22:18:25 UTC) #13
commit-bot: I haz the power
9 years, 1 month ago (2011-11-23 00:36:50 UTC) #14
Change committed as 111263

Powered by Google App Engine
This is Rietveld 408576698