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

Unified Diff: chrome/browser/net/crl_set_fetcher.cc

Issue 9018021: base::Bind() cleanup in chrome/browser/net (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/net/preconnect.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/crl_set_fetcher.cc
diff --git a/chrome/browser/net/crl_set_fetcher.cc b/chrome/browser/net/crl_set_fetcher.cc
index c658d788202972a1ac74b590771526ac25407b62..b3e007c575913a6593b4613de7e17918c343933d 100644
--- a/chrome/browser/net/crl_set_fetcher.cc
+++ b/chrome/browser/net/crl_set_fetcher.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/net/crl_set_fetcher.h"
+#include "base/bind.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/rand_util.h"
@@ -42,9 +43,7 @@ void CRLSetFetcher::StartInitialLoad(ComponentUpdateService* cus) {
if (!BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
- NewRunnableMethod(
- this,
- &CRLSetFetcher::DoInitialLoadFromDisk))) {
+ base::Bind(&CRLSetFetcher::DoInitialLoadFromDisk, this))) {
NOTREACHED();
}
}
@@ -69,9 +68,9 @@ void CRLSetFetcher::DoInitialLoadFromDisk() {
// loaded, if any.
if (!BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(
- this,
+ base::Bind(
&CRLSetFetcher::RegisterComponent,
+ this,
sequence_of_loaded_crl))) {
NOTREACHED();
}
@@ -102,8 +101,8 @@ void CRLSetFetcher::LoadFromDisk(FilePath path,
if (!BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(
- this, &CRLSetFetcher::SetCRLSetIfNewer, crl_set))) {
+ base::Bind(
+ &CRLSetFetcher::SetCRLSetIfNewer, this, crl_set))) {
NOTREACHED();
}
}
« no previous file with comments | « no previous file | chrome/browser/net/preconnect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698