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

Unified Diff: Source/web/DatabaseClientImpl.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/web/DatabaseClientImpl.cpp
diff --git a/Source/web/DatabaseClientImpl.cpp b/Source/web/DatabaseClientImpl.cpp
index 86c67147f26b9815bd0f1b2ce0d2d978107c8185..c62af148148d0978e3beb759915fe321153f80e8 100644
--- a/Source/web/DatabaseClientImpl.cpp
+++ b/Source/web/DatabaseClientImpl.cpp
@@ -63,7 +63,7 @@ bool DatabaseClientImpl::allowDatabase(ExecutionContext* executionContext, const
if (webFrame->permissionClient())
return webFrame->permissionClient()->allowDatabase(webFrame, name, displayName, estimatedSize);
} else {
- WorkerGlobalScope* workerGlobalScope = toWorkerGlobalScope(executionContext);
+ WorkerGlobalScope& workerGlobalScope = *toWorkerGlobalScope(executionContext);
return WorkerPermissionClient::from(workerGlobalScope)->allowDatabase(name, displayName, estimatedSize);
}
return true;

Powered by Google App Engine
This is Rietveld 408576698