| 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));
|
| }
|
| }
|
|
|
|
|