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