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

Unified Diff: components/offline_pages/background/request_queue_store_sql.cc

Issue 2352853002: Disallow redundant Bind calls. (Closed)
Patch Set: Another BindToLoop Created 4 years, 3 months 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: components/offline_pages/background/request_queue_store_sql.cc
diff --git a/components/offline_pages/background/request_queue_store_sql.cc b/components/offline_pages/background/request_queue_store_sql.cc
index 149744910e9d3c3ea5d485b310cbc9fd2b75e95e..a921af19027fed5cb1eb912b6e78343b663c5658 100644
--- a/components/offline_pages/background/request_queue_store_sql.cc
+++ b/components/offline_pages/background/request_queue_store_sql.cc
@@ -369,8 +369,7 @@ bool RequestQueueStoreSQL::CheckDb(const base::Closure& callback) {
if (!db_.get()) {
// Nothing to do, but post a callback instead of calling directly
// to preserve the async style behavior to prevent bugs.
- base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
- base::Bind(callback));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, callback);
return false;
}
return true;

Powered by Google App Engine
This is Rietveld 408576698