Bug 1116558 - Remove the code to handle shutdown-cleanse from the RDF code; r=bsmedberg
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 30 Dec 2014 14:45:45 -0500
changeset 247753 3e9029d8a6594be89dcb4f89c831e583e2df5802
parent 247752 2e95f0d2fd2379a57c720e9ccf87bfcfc0e4742d
child 247754 e18f8c0cf429de80c5250f001a8ca84861a8eb70
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs1116558
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1116558 - Remove the code to handle shutdown-cleanse from the RDF code; r=bsmedberg shutdown-cleanse has not been a thing for quite a while.
rdf/datasource/nsLocalStore.cpp
--- a/rdf/datasource/nsLocalStore.cpp
+++ b/rdf/datasource/nsLocalStore.cpp
@@ -469,21 +469,14 @@ LocalStoreImpl::Observe(nsISupports *aSu
             nsCOMPtr<nsIRDFRemoteDataSource> remote = do_QueryInterface(mInner);
             if (remote)
                 remote->Flush();
         }
 
         // Create an in-memory datasource for use while we're
         // profile-less.
         mInner = do_CreateInstance(NS_RDF_DATASOURCE_CONTRACTID_PREFIX "in-memory-datasource");
-
-        if (!NS_strcmp(someData, MOZ_UTF16("shutdown-cleanse"))) {
-            nsCOMPtr<nsIFile> aFile;
-            rv = NS_GetSpecialDirectory(NS_APP_LOCALSTORE_50_FILE, getter_AddRefs(aFile));
-            if (NS_SUCCEEDED(rv))
-                rv = aFile->Remove(false);
-        }
     }
     else if (!nsCRT::strcmp(aTopic, "profile-do-change")) {
         rv = LoadData();
     }
     return rv;
 }