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

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: . Created 7 years, 12 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/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 8054334d07b916a1589ab95d4719f088bb4da34f..f17ef30c30110904a87a9cf19b8dad79590e4f31 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/base/dialogs/select_file_dialog.h"
#include "ui/base/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,10 @@ class SelectFileDialogExtensionBrowserTest : public ExtensionBrowserTest {
fileapi::ExternalFileSystemMountPointProvider* provider =
BrowserContext::GetDefaultStoragePartition(browser()->profile())->
GetFileSystemContext()->external_provider();
- provider->AddLocalMountPoint(path);
+
+ fileapi::ExternalMountPoints::GetSystemInstance()->RevokeFileSystem(
+ "Downloads");
kinuko 2013/01/08 12:22:43 nit: This hard-coded string may look less nicer. W
tbarzic 2013/01/09 01:26:34 Done.
+ ASSERT_TRUE(provider->AddLocalMountPoint(path));
}
void CheckJavascriptErrors() {

Powered by Google App Engine
This is Rietveld 408576698