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

Unified Diff: content/browser/shared_worker/shared_worker_service_impl.cc

Issue 338353007: Implementation of shared worker code path for WebView file system permission. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_sharedworker
Patch Set: Small changes are made. Created 6 years, 5 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: content/browser/shared_worker/shared_worker_service_impl.cc
diff --git a/content/browser/shared_worker/shared_worker_service_impl.cc b/content/browser/shared_worker/shared_worker_service_impl.cc
index 4a689fa812fe422e522ffe3193c8d6f5394b7e7f..3c4b78b4686f85a95d1e095e23125db6d52aaec8 100644
--- a/content/browser/shared_worker/shared_worker_service_impl.cc
+++ b/content/browser/shared_worker/shared_worker_service_impl.cc
@@ -394,10 +394,14 @@ void SharedWorkerServiceImpl::AllowDatabase(
void SharedWorkerServiceImpl::AllowFileSystem(
int worker_route_id,
const GURL& url,
- bool* result,
+ IPC::Message* reply_msg,
SharedWorkerMessageFilter* filter) {
- if (SharedWorkerHost* host = FindSharedWorkerHost(filter, worker_route_id))
- host->AllowFileSystem(url, result);
+ if (SharedWorkerHost* host = FindSharedWorkerHost(filter, worker_route_id)) {
+ host->AllowFileSystem(url, make_scoped_ptr(reply_msg));
+ } else {
+ filter->Send(reply_msg);
+ return;
+ }
}
void SharedWorkerServiceImpl::AllowIndexedDB(
« no previous file with comments | « content/browser/shared_worker/shared_worker_service_impl.h ('k') | content/browser/worker_host/worker_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698