summaryrefslogtreecommitdiffstats
path: root/apps/app_restore_service_browsertest.cc
diff options
context:
space:
mode:
authorsammc@chromium.org <sammc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-29 10:02:25 +0000
committersammc@chromium.org <sammc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-29 10:02:25 +0000
commitffb8706267743f92faa5314e1e61c7c76c65e0dd (patch)
tree4aa4841c888e7fb0a518850d9b383506a693b75e /apps/app_restore_service_browsertest.cc
parenta39dcb42c9cc46fa6598744d043f3461c542d967 (diff)
downloadchromium_src-ffb8706267743f92faa5314e1e61c7c76c65e0dd.zip
chromium_src-ffb8706267743f92faa5314e1e61c7c76c65e0dd.tar.gz
chromium_src-ffb8706267743f92faa5314e1e61c7c76c65e0dd.tar.bz2
Use only app permissions to decide if file entries should be writable.
Previously, apps with the fileSystem.write permission could choose to obtain read-only files and file entries provided as launch data were always read-only. With this change, all file entries obtained using the chrome.fileSystem API or provided as launch data are writable, for apps with the fileSystem.write permission. This makes getWritableEntry unnecessary, other than for files obtained through other means (e.g., drag and drop). BUG=148486 Review URL: https://chromiumcodereview.appspot.com/23202006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_restore_service_browsertest.cc')
-rw-r--r--apps/app_restore_service_browsertest.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/app_restore_service_browsertest.cc b/apps/app_restore_service_browsertest.cc
index 88ceb65..cdde267 100644
--- a/apps/app_restore_service_browsertest.cc
+++ b/apps/app_restore_service_browsertest.cc
@@ -136,8 +136,7 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_FileAccessIsRestored) {
extension_prefs->SetExtensionRunning(extension->id(), true);
for (std::vector<SavedFileEntry>::const_iterator it = file_entries.begin();
it != file_entries.end(); ++it) {
- saved_files_service->RegisterFileEntry(
- extension->id(), it->id, it->path, it->writable);
+ saved_files_service->RegisterFileEntry(extension->id(), it->id, it->path);
}
apps::AppRestoreServiceFactory::GetForProfile(browser()->profile())->