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

Unified Diff: Source/web/IDBFactoryBackendProxy.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/IDBFactoryBackendProxy.cpp
diff --git a/Source/web/IDBFactoryBackendProxy.cpp b/Source/web/IDBFactoryBackendProxy.cpp
index a18facb2737293a4c0420b1be62195b98a38cb1f..2550490aea5e464ddf09eee0c6f597ea673132a6 100644
--- a/Source/web/IDBFactoryBackendProxy.cpp
+++ b/Source/web/IDBFactoryBackendProxy.cpp
@@ -61,7 +61,7 @@ bool IDBFactoryBackendProxy::allowIndexedDB(ExecutionContext* context, const Str
return !webFrame->permissionClient() || webFrame->permissionClient()->allowIndexedDB(webFrame, name, origin);
}
- WorkerGlobalScope* workerGlobalScope = toWorkerGlobalScope(context);
+ WorkerGlobalScope& workerGlobalScope = *toWorkerGlobalScope(context);
return WorkerPermissionClient::from(workerGlobalScope)->allowIndexedDB(name);
}

Powered by Google App Engine
This is Rietveld 408576698