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

Unified Diff: Source/web/LocalFileSystemClient.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/LocalFileSystemClient.cpp
diff --git a/Source/web/LocalFileSystemClient.cpp b/Source/web/LocalFileSystemClient.cpp
index 3280435a5089ebbea7db674f5bae5f87b8d25d6d..ccf07207046b2295f9f78ff04f470ad6710d4058 100644
--- a/Source/web/LocalFileSystemClient.cpp
+++ b/Source/web/LocalFileSystemClient.cpp
@@ -54,13 +54,14 @@ LocalFileSystemClient::~LocalFileSystemClient()
bool LocalFileSystemClient::allowFileSystem(ExecutionContext* context)
{
+ ASSERT(context);
if (context->isDocument()) {
Document* document = toDocument(context);
WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame());
return !webFrame->permissionClient() || webFrame->permissionClient()->allowFileSystem(webFrame);
}
ASSERT(context->isWorkerGlobalScope());
- return WorkerPermissionClient::from(toWorkerGlobalScope(context))->allowFileSystem();
+ return WorkerPermissionClient::from(*toWorkerGlobalScope(context))->allowFileSystem();
}
LocalFileSystemClient::LocalFileSystemClient()

Powered by Google App Engine
This is Rietveld 408576698