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

Unified Diff: chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc

Issue 11648027: Extract external file systems handling from isolated context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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
« no previous file with comments | « chrome/browser/extensions/api/file_system/file_system_api.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc
diff --git a/chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc b/chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc
index 62faaa7cd49c4c0d505a691fad669cb69f583549..dcc393473327efedef0916a5bb520ee05dc20ca3 100644
--- a/chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc
+++ b/chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc
@@ -28,6 +28,7 @@
#include "content/public/test/test_utils.h"
#include "ui/shell_dialogs/select_file_dialog.h"
#include "ui/shell_dialogs/selected_file_info.h"
+#include "webkit/fileapi/external_mount_points.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_mount_point_provider.h"
@@ -119,7 +120,12 @@ class SelectFileDialogExtensionBrowserTest : public ExtensionBrowserTest {
fileapi::ExternalFileSystemMountPointProvider* provider =
BrowserContext::GetDefaultStoragePartition(browser()->profile())->
GetFileSystemContext()->external_provider();
- provider->AddLocalMountPoint(path);
+
+ // The Downloads mount point already exists so it must be removed before
+ // adding the test mount point (which will also be mapped as Downloads).
+ fileapi::ExternalMountPoints::GetSystemInstance()->RevokeFileSystem(
+ path.BaseName().AsUTF8Unsafe());
+ EXPECT_TRUE(provider->AddLocalMountPoint(path));
}
void CheckJavascriptErrors() {
« no previous file with comments | « chrome/browser/extensions/api/file_system/file_system_api.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698