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

Unified Diff: lib/localstorage/io.js

Issue 13077005: Fix first-run page in Opera (Closed)
Patch Set: Fixed nits Created Oct. 16, 2013, 1:43 p.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
« no previous file with comments | « lib/filesystem/io.js ('k') | lib/utils.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/localstorage/io.js
===================================================================
--- a/lib/localstorage/io.js
+++ b/lib/localstorage/io.js
@@ -48,20 +48,20 @@ var IO = exports.IO =
{
var Utils = require("utils").Utils;
Utils.runAsync(function()
{
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;
+ callback(null);
return;
}
var path = this._getFilePath(file);
if (!(path in window.localStorage))
{
callback(new Error("File doesn't exist"))
return;
« no previous file with comments | « lib/filesystem/io.js ('k') | lib/utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld