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

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

Issue 8573031: base::Bind fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed net_unittest 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/browser/net/sqlite_persistent_cookie_store.cc
diff --git a/chrome/browser/net/sqlite_persistent_cookie_store.cc b/chrome/browser/net/sqlite_persistent_cookie_store.cc
index 6c4ac1f0b793faf58acda1008f0f9f1ab1b72cff..444e1fa78fb0fdae0813e55b82440250a91e2ca4 100644
--- a/chrome/browser/net/sqlite_persistent_cookie_store.cc
+++ b/chrome/browser/net/sqlite_persistent_cookie_store.cc
@@ -661,12 +661,12 @@ void SQLitePersistentCookieStore::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));
}
}
@@ -762,7 +762,7 @@ void SQLitePersistentCookieStore::Backend::Commit() {
void SQLitePersistentCookieStore::Backend::Flush(Task* completion_task) {
DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::DB));
BrowserThread::PostTask(
- BrowserThread::DB, FROM_HERE, NewRunnableMethod(this, &Backend::Commit));
+ BrowserThread::DB, FROM_HERE, base::Bind(&Backend::Commit, this));
if (completion_task) {
// We want the completion task to run immediately after Commit() returns.
// Posting it from here means there is less chance of another task getting
@@ -781,7 +781,7 @@ void SQLitePersistentCookieStore::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));
}
}

Powered by Google App Engine
This is Rietveld 408576698