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

Unified Diff: Source/modules/indexeddb/PageGroupIndexedDatabase.cpp

Issue 165443003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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: Source/modules/indexeddb/PageGroupIndexedDatabase.cpp
diff --git a/Source/modules/indexeddb/PageGroupIndexedDatabase.cpp b/Source/modules/indexeddb/PageGroupIndexedDatabase.cpp
index 81c0be5e03d7085701f98b55b10cbfd1183627a7..40502ffa6dcbfd809aa53e280174f4ec85e09c3b 100644
--- a/Source/modules/indexeddb/PageGroupIndexedDatabase.cpp
+++ b/Source/modules/indexeddb/PageGroupIndexedDatabase.cpp
@@ -44,14 +44,14 @@ const char* PageGroupIndexedDatabase::supplementName()
return "PageGroupIndexedDatabase";
}
-PageGroupIndexedDatabase* PageGroupIndexedDatabase::from(PageGroup& group)
+PageGroupIndexedDatabase& PageGroupIndexedDatabase::from(PageGroup& group)
{
- PageGroupIndexedDatabase* supplement = static_cast<PageGroupIndexedDatabase*>(Supplement<PageGroup>::from(&group, supplementName()));
+ PageGroupIndexedDatabase* supplement = static_cast<PageGroupIndexedDatabase*>(Supplement<PageGroup>::from(group, supplementName()));
if (!supplement) {
supplement = new PageGroupIndexedDatabase();
- provideTo(&group, supplementName(), adoptPtr(supplement));
+ provideTo(group, supplementName(), adoptPtr(supplement));
}
- return supplement;
+ return *supplement;
}
IDBFactoryBackendInterface* PageGroupIndexedDatabase::factoryBackend()
« no previous file with comments | « Source/modules/indexeddb/PageGroupIndexedDatabase.h ('k') | Source/modules/indexeddb/WorkerGlobalScopeIndexedDatabase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698