Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/websql/io.js

Issue 5923900886089728: Use FileSystem API to store data in Opera (Closed)
Patch Set: Prevent first-run page from appearing Created Nov. 26, 2013, 8:48 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/websql/io.js
===================================================================
--- a/lib/websql/io.js
+++ b/lib/websql/io.js
@@ -52,20 +52,23 @@ var IO = exports.IO =
return new FakeFile(path);
},
readFromFile: function(file, decode, listener, callback, timeLineID)
{
if ("spec" in file && /^defaults\b/.test(file.spec))
{
// Code attempts to read the default patterns.ini, we don't have that.
// Make sure to execute first-run actions instead.
- callback(null);
- if (localStorage.currentVersion)
- seenDataCorruption = true;
- delete localStorage.currentVersion;
+ var Utils = require("utils").Utils;
+ Utils.runAsync(function()
+ {
+ if (localStorage.currentVersion)
+ seenDataCorruption = true;
+ callback(null)
Thomas Greiner 2013/11/26 10:23:32 nit: semicolon missing
+ });
return;
}
var path = this._getFilePath(file);
var runAsync = require("utils").Utils.runAsync;
this._transaction(function(tx)
{
« lib/filesystem/io.js ('K') | « lib/localstorage/io.js ('k') | metadata.opera » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld