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

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: 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 9a224fa99db1a601b4372b1dc5a747277726c8f1..46c357b0f714b1b10993dc11fac14f3c5ad85e72 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"
@@ -282,7 +283,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