Chromium Code Reviews| Index: content/browser/indexed_db/indexed_db_context_impl.cc |
| diff --git a/content/browser/indexed_db/indexed_db_context_impl.cc b/content/browser/indexed_db/indexed_db_context_impl.cc |
| index c79635f991e78ea24068f999cbe84b956a328bc8..ec8a2c8fb37568edbd73a453ffec3e14a3b81526 100644 |
| --- a/content/browser/indexed_db/indexed_db_context_impl.cc |
| +++ b/content/browser/indexed_db/indexed_db_context_impl.cc |
| @@ -467,9 +467,9 @@ void IndexedDBContextImpl::DatabaseDeleted(const Origin& origin) { |
| IndexedDBContextImpl::~IndexedDBContextImpl() { |
| if (factory_.get()) { |
| - TaskRunner()->PostTask( |
| - FROM_HERE, base::Bind(&IndexedDBFactory::ContextDestroyed, factory_)); |
| - factory_ = NULL; |
|
pwnall
2017/05/19 00:16:32
why not nullptr?
|
| + TaskRunner()->PostTask(FROM_HERE, |
| + base::Bind(&IndexedDBFactory::ContextDestroyed, |
| + base::Passed(&factory_))); |
| } |
| if (data_path_.empty()) |