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

Unified Diff: chrome/browser/chromeos/extensions/file_handler_util.cc

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove useless headers. Created 8 years, 3 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: chrome/browser/chromeos/extensions/file_handler_util.cc
diff --git a/chrome/browser/chromeos/extensions/file_handler_util.cc b/chrome/browser/chromeos/extensions/file_handler_util.cc
index d26447debe45428208213fabe20c15ac89b296b0..afe5614fd9f2350faa99bcb551247c314be02509 100644
--- a/chrome/browser/chromeos/extensions/file_handler_util.cc
+++ b/chrome/browser/chromeos/extensions/file_handler_util.cc
@@ -32,6 +32,7 @@
#include "content/public/browser/child_process_security_policy.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/site_instance.h"
+#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "net/base/escape.h"
#include "webkit/chromeos/fileapi/cros_mount_point_provider.h"
@@ -752,9 +753,10 @@ bool ExtensionTaskExecutor::ExecuteAndNotify(
done_ = done;
- // Get local file system instance on file thread.
scoped_refptr<fileapi::FileSystemContext> file_system_context =
- BrowserContext::GetFileSystemContext(profile());
+ BrowserContext::GetDefaultStoragePartition(profile())->
+ GetFileSystemContext();
+
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
base::Bind(

Powered by Google App Engine
This is Rietveld 408576698