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

Unified Diff: content/browser/indexed_db/indexed_db_context_impl.cc

Issue 18346006: Update OS X to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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: 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;
« no previous file with comments | « cloud_print/gcp20/prototype/dns_sd_server.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698