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

Unified Diff: net/base/default_origin_bound_cert_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: net/base/default_origin_bound_cert_store.cc
diff --git a/net/base/default_origin_bound_cert_store.cc b/net/base/default_origin_bound_cert_store.cc
index e897cd9736ab807e16b4c9ab5f420f91e80261a6..82aec7d4293103967a122acbfd9ef919d6cf8824 100644
--- a/net/base/default_origin_bound_cert_store.cc
+++ b/net/base/default_origin_bound_cert_store.cc
@@ -4,6 +4,7 @@
#include "net/base/default_origin_bound_cert_store.h"
+#include "base/bind.h"
#include "base/message_loop.h"
namespace net {
@@ -16,12 +17,13 @@ DefaultOriginBoundCertStore::DefaultOriginBoundCertStore(
: initialized_(false),
store_(store) {}
-void DefaultOriginBoundCertStore::FlushStore(Task* completion_task) {
+void DefaultOriginBoundCertStore::FlushStore(
+ const base::Closure& completion_task) {
base::AutoLock autolock(lock_);
if (initialized_ && store_)
store_->Flush(completion_task);
- else if (completion_task)
+ else if (!completion_task.is_null())
MessageLoop::current()->PostTask(FROM_HERE, completion_task);
}

Powered by Google App Engine
This is Rietveld 408576698