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

Unified Diff: Source/modules/quota/StorageQuotaClient.cpp

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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/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

Powered by Google App Engine
This is Rietveld 408576698