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

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

Issue 8960010: base::Bind: Convert NewRunnableMethod in chrome/browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix 55. 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 | « chrome/browser/history/history_extension_api.cc ('k') | chrome/browser/omnibox_search_hint.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/sqlite_origin_bound_cert_store.cc
diff --git a/chrome/browser/net/sqlite_origin_bound_cert_store.cc b/chrome/browser/net/sqlite_origin_bound_cert_store.cc
index 039530b20132aff75dc5b639e02d72bedd9ee432..90a9ddd7c55a5b811c6ec829b7068c9dc7805bca 100644
--- a/chrome/browser/net/sqlite_origin_bound_cert_store.cc
+++ b/chrome/browser/net/sqlite_origin_bound_cert_store.cc
@@ -335,12 +335,12 @@ void SQLiteOriginBoundCertStore::Backend::BatchOperation(
// We've gotten our first entry for this batch, fire off the timer.
BrowserThread::PostDelayedTask(
BrowserThread::DB, FROM_HERE,
- NewRunnableMethod(this, &Backend::Commit), kCommitIntervalMs);
+ base::Bind(&Backend::Commit, this), kCommitIntervalMs);
} else if (num_pending == kCommitAfterBatchSize) {
// We've reached a big enough batch, fire off a commit now.
BrowserThread::PostTask(
BrowserThread::DB, FROM_HERE,
- NewRunnableMethod(this, &Backend::Commit));
+ base::Bind(&Backend::Commit, this));
}
}
@@ -432,7 +432,7 @@ void SQLiteOriginBoundCertStore::Backend::Close() {
// Must close the backend on the background thread.
BrowserThread::PostTask(
BrowserThread::DB, FROM_HERE,
- NewRunnableMethod(this, &Backend::InternalBackgroundClose));
+ base::Bind(&Backend::InternalBackgroundClose, this));
}
void SQLiteOriginBoundCertStore::Backend::InternalBackgroundClose() {
« no previous file with comments | « chrome/browser/history/history_extension_api.cc ('k') | chrome/browser/omnibox_search_hint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698