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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_private_apitest.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: patch unittest fix from michael 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_browser_private_apitest.cc
diff --git a/chrome/browser/chromeos/extensions/file_browser_private_apitest.cc b/chrome/browser/chromeos/extensions/file_browser_private_apitest.cc
index 1638a02d594c30548ada4fc1f48085b95dff07d9..c06728793d31ea1671cbb1b76b941e5083237860 100644
--- a/chrome/browser/chromeos/extensions/file_browser_private_apitest.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_private_apitest.cc
@@ -10,7 +10,9 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/ui_test_utils.h"
#include "chromeos/disks/mock_disk_mount_manager.h"
+#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/storage_partition.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_mount_point_provider.h"
@@ -170,8 +172,8 @@ class ExtensionFileBrowserPrivateApiTest : public ExtensionApiTest {
void AddTmpMountPoint() {
fileapi::ExternalFileSystemMountPointProvider* provider =
- BrowserContext::GetFileSystemContext(browser()->profile())->
- external_provider();
+ BrowserContext::GetDefaultStoragePartition(browser()->profile())->
+ GetFileSystemContext()->external_provider();
provider->AddLocalMountPoint(test_mount_point_);
}

Powered by Google App Engine
This is Rietveld 408576698