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

Unified Diff: Source/modules/webdatabase/DatabaseClient.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/webdatabase/DatabaseClient.cpp
diff --git a/Source/modules/webdatabase/DatabaseClient.cpp b/Source/modules/webdatabase/DatabaseClient.cpp
index 4f127a117fe52476b5f03e8fb8ce44203a8468aa..b59ecbd577847617c95a8b661252f974b5614022 100644
--- a/Source/modules/webdatabase/DatabaseClient.cpp
+++ b/Source/modules/webdatabase/DatabaseClient.cpp
@@ -71,11 +71,11 @@ void DatabaseClient::createInspectorAgentFor(Page* page)
page->inspectorController().registerModuleAgent(inspectorAgent.release());
}
-void provideDatabaseClientTo(Page* page, PassOwnPtr<DatabaseClient> client)
+void provideDatabaseClientTo(Page& page, PassOwnPtr<DatabaseClient> client)
{
DatabaseClient* clientPtr = client.get();
- page->provideSupplement(DatabaseClient::supplementName(), client);
- clientPtr->createInspectorAgentFor(page);
+ page.provideSupplement(DatabaseClient::supplementName(), client);
+ clientPtr->createInspectorAgentFor(&page);
}
void provideDatabaseClientToWorker(WorkerClients* workerClients, PassOwnPtr<DatabaseClient> client)

Powered by Google App Engine
This is Rietveld 408576698