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 221927 3e9029d8a6594be89dcb4f89c831e583e2df5802
parent 221926 2e95f0d2fd2379a57c720e9ccf87bfcfc0e4742d
child 221928 e18f8c0cf429de80c5250f001a8ca84861a8eb70
push id28050
push userphilringnalda@gmail.com
push dateSun, 04 Jan 2015 04:02:52 +0000
treeherdermozilla-central@55f3224d7513 [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;
 }