| 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 2156d354debd47d0a89602aa99f38249d48524da..6bfee75ed6c9f3febb03adbe57faddfc01939557 100644
|
| --- a/content/browser/indexed_db/indexed_db_context_impl.cc
|
| +++ b/content/browser/indexed_db/indexed_db_context_impl.cc
|
| @@ -108,13 +108,13 @@ IndexedDBContextImpl::IndexedDBContextImpl(
|
|
|
| IndexedDBFactory* IndexedDBContextImpl::GetIDBFactory() {
|
| DCHECK(TaskRunner()->RunsTasksOnCurrentThread());
|
| - if (!idb_factory_) {
|
| + if (!idb_factory_.get()) {
|
| // Prime our cache of origins with existing databases so we can
|
| // detect when dbs are newly created.
|
| GetOriginSet();
|
| idb_factory_ = IndexedDBFactory::Create();
|
| }
|
| - return idb_factory_;
|
| + return idb_factory_.get();
|
| }
|
|
|
| std::vector<GURL> IndexedDBContextImpl::GetAllOrigins() {
|
| @@ -288,7 +288,7 @@ quota::QuotaManagerProxy* IndexedDBContextImpl::quota_manager_proxy() {
|
| }
|
|
|
| IndexedDBContextImpl::~IndexedDBContextImpl() {
|
| - if (idb_factory_) {
|
| + if (idb_factory_.get()) {
|
| IndexedDBFactory* factory = idb_factory_.get();
|
| factory->AddRef();
|
| idb_factory_ = NULL;
|
|
|