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

Unified Diff: Source/modules/quota/StorageQuotaClient.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
« no previous file with comments | « Source/modules/quota/StorageQuotaClient.h ('k') | Source/modules/quota/WorkerNavigatorStorageQuota.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/quota/StorageQuotaClient.cpp
diff --git a/Source/modules/quota/StorageQuotaClient.cpp b/Source/modules/quota/StorageQuotaClient.cpp
index 60230cd617da1561bcb7fd21d1330321e9c876f6..37634c8dc8d2d290bf0c8af23543da12647c3fe3 100644
--- a/Source/modules/quota/StorageQuotaClient.cpp
+++ b/Source/modules/quota/StorageQuotaClient.cpp
@@ -46,9 +46,9 @@ StorageQuotaClient* StorageQuotaClient::from(ExecutionContext* context)
return static_cast<StorageQuotaClient*>(Supplement<Page>::from(toDocument(context)->page(), supplementName()));
}
-void provideStorageQuotaClientTo(Page* page, PassOwnPtr<StorageQuotaClient> client)
+void provideStorageQuotaClientTo(Page& page, PassOwnPtr<StorageQuotaClient> client)
{
- page->provideSupplement(StorageQuotaClient::supplementName(), client);
+ page.provideSupplement(StorageQuotaClient::supplementName(), client);
}
} // namespace WebCore
« no previous file with comments | « Source/modules/quota/StorageQuotaClient.h ('k') | Source/modules/quota/WorkerNavigatorStorageQuota.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698