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

Unified Diff: chrome/browser/safe_browsing/protocol_manager.cc

Issue 8548003: Some easy NewRunnableMethod conversions in safe_browsing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Convert to WeakPtrFactory. 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
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/protocol_manager.cc
diff --git a/chrome/browser/safe_browsing/protocol_manager.cc b/chrome/browser/safe_browsing/protocol_manager.cc
index 0c0dd5e15f27b4511b08dc657a3de4e14c181772..d157f8c1ed4141f08546d4f2babfeb2d5ddf52ff 100644
--- a/chrome/browser/safe_browsing/protocol_manager.cc
+++ b/chrome/browser/safe_browsing/protocol_manager.cc
@@ -7,6 +7,7 @@
#ifndef NDEBUG
#include "base/base64.h"
#endif
+#include "base/bind.h"
#include "base/environment.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
@@ -464,9 +465,8 @@ bool SafeBrowsingProtocolManager::HandleServiceResponse(const GURL& url,
wrapped_key_ = wrapped_key;
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(
- sb_service_, &SafeBrowsingService::OnNewMacKeys, client_key_,
- wrapped_key_));
+ base::Bind(&SafeBrowsingService::OnNewMacKeys,
+ sb_service_, client_key_, wrapped_key_));
break;
}
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698