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

Unified Diff: chrome/test/data/extensions/platform_apps/file_access_saved_to_prefs_test/test.js

Issue 14607023: Add support for persistent file access in apps. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 years, 7 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/test/data/extensions/platform_apps/file_access_saved_to_prefs_test/test.js
diff --git a/chrome/test/data/extensions/platform_apps/file_access_saved_to_prefs_test/test.js b/chrome/test/data/extensions/platform_apps/file_access_saved_to_prefs_test/test.js
index fe42334faf359366ca5fe3d71c7c7f5fc4b0acdf..d4ebd7cf404c69480f0c53135934918a4b035a91 100644
--- a/chrome/test/data/extensions/platform_apps/file_access_saved_to_prefs_test/test.js
+++ b/chrome/test/data/extensions/platform_apps/file_access_saved_to_prefs_test/test.js
@@ -25,7 +25,9 @@ chrome.app.runtime.onLaunched.addListener(function() {
function(win) {
var fs = win.contentWindow.chrome.fileSystem;
fs.chooseEntry({type: 'openFile'}, function(entry) {
+ chrome.fileSystem.retainEntry(entry);
fs.getWritableEntry(entry, function(writableEntry) {
+ chrome.fileSystem.retainEntry(writableEntry);
truncateAndWriteToFile(writableEntry, function() {
chrome.test.sendMessage('fileWritten');
win.close();

Powered by Google App Engine
This is Rietveld 408576698