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

Unified Diff: chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc

Issue 8573018: Convert to base::Callback in safe_browsing client-side-detection code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Don't call Run() on null callbacks. Created 9 years, 1 month 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
Index: chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc
diff --git a/chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc b/chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc
index d66d54ba85faad1dacd0537492009d9163573844..6cea74d34e634bd9ab70307c8dafe37fd225cc10 100644
--- a/chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc
+++ b/chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc
@@ -64,7 +64,8 @@ class PhishingDOMFeatureExtractorTest : public RenderViewFakeResourcesTest {
success_ = false;
extractor_->ExtractFeatures(
features,
- NewCallback(this, &PhishingDOMFeatureExtractorTest::ExtractionDone));
+ base::Bind(&PhishingDOMFeatureExtractorTest::ExtractionDone,
+ base::Unretained(this)));
message_loop_.Run();
return success_;
}

Powered by Google App Engine
This is Rietveld 408576698