summaryrefslogtreecommitdiffstats
path: root/apps/app_restore_service_browsertest.cc
diff options
context:
space:
mode:
authorkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-25 14:15:53 +0000
committerkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-25 14:15:53 +0000
commit5025efdb5e77d06403c7feb67caa76db00d8c18a (patch)
treeeb70b6bf0253f590967aff3eff29b6e9b39a59b1 /apps/app_restore_service_browsertest.cc
parent4ae4272a09df5dcff1cd46135b6955c2ced39686 (diff)
downloadchromium_src-5025efdb5e77d06403c7feb67caa76db00d8c18a.zip
chromium_src-5025efdb5e77d06403c7feb67caa76db00d8c18a.tar.gz
chromium_src-5025efdb5e77d06403c7feb67caa76db00d8c18a.tar.bz2
Change chrome.filesystem to handle the Chrome OS Drive file entries directly.
This CL shows the Drive folder in the open file dialog, and allows the app to select the real entry of the remote file, rather than its local cache. BUG=156277 TEST=Run the sample text editor chrome app, and open a Drive file via the open-file dialog on Chrome OS. Should see "/special/drive/..." path. Review URL: https://chromiumcodereview.appspot.com/13023002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190394 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_restore_service_browsertest.cc')
-rw-r--r--apps/app_restore_service_browsertest.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_restore_service_browsertest.cc b/apps/app_restore_service_browsertest.cc
index f17cc64..d0dac93b 100644
--- a/apps/app_restore_service_browsertest.cc
+++ b/apps/app_restore_service_browsertest.cc
@@ -70,6 +70,8 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, FileAccessIsSavedToPrefs) {
FileSystemChooseEntryFunction::SkipPickerAndAlwaysSelectPathForTest(
&temp_file);
+ FileSystemChooseEntryFunction::RegisterTempExternalFileSystemForTest(
+ "temp", temp_directory.path());
ExtensionTestMessageListener file_written_listener("fileWritten", false);
ExtensionTestMessageListener access_ok_listener(
@@ -111,6 +113,8 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, FileAccessIsRestored) {
FileSystemChooseEntryFunction::SkipPickerAndAlwaysSelectPathForTest(
&temp_file);
+ FileSystemChooseEntryFunction::RegisterTempExternalFileSystemForTest(
+ "temp", temp_directory.path());
ExtensionTestMessageListener file_written_listener("fileWritten", false);
ExtensionTestMessageListener access_ok_listener(