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() { |