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

Unified Diff: chrome/renderer/safe_browsing/phishing_classifier_delegate.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_classifier_delegate.cc
diff --git a/chrome/renderer/safe_browsing/phishing_classifier_delegate.cc b/chrome/renderer/safe_browsing/phishing_classifier_delegate.cc
index e2f74ea30912cfd739fc783e3243ef763d6141bd..3e5415017b190672080ebf4ba2386d6213228782 100644
--- a/chrome/renderer/safe_browsing/phishing_classifier_delegate.cc
+++ b/chrome/renderer/safe_browsing/phishing_classifier_delegate.cc
@@ -6,6 +6,7 @@
#include <set>
+#include "base/bind.h"
#include "base/callback.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
@@ -285,7 +286,8 @@ void PhishingClassifierDelegate::MaybeStartClassification() {
is_classifying_ = true;
classifier_->BeginClassification(
&classifier_page_text_,
- NewCallback(this, &PhishingClassifierDelegate::ClassificationDone));
+ base::Bind(&PhishingClassifierDelegate::ClassificationDone,
+ base::Unretained(this)));
}
} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698