Bug 1116560 - Spell shutdown-persist properly in nsXREDirProvider::DoShutdown to make it greppable; r=bsmedberg
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 30 Dec 2014 14:50:15 -0500
changeset 247752 2e95f0d2fd2379a57c720e9ccf87bfcfc0e4742d
parent 247751 6d124760473c2426767fb0cd9fd3cc2fb7e48afb
child 247753 3e9029d8a6594be89dcb4f89c831e583e2df5802
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
bugs1116560
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 1116560 - Spell shutdown-persist properly in nsXREDirProvider::DoShutdown to make it greppable; r=bsmedberg
toolkit/xre/nsXREDirProvider.cpp
--- a/toolkit/xre/nsXREDirProvider.cpp
+++ b/toolkit/xre/nsXREDirProvider.cpp
@@ -879,18 +879,17 @@ nsXREDirProvider::DoStartup()
 void
 nsXREDirProvider::DoShutdown()
 {
   if (mProfileNotified) {
     nsCOMPtr<nsIObserverService> obsSvc =
       mozilla::services::GetObserverService();
     NS_ASSERTION(obsSvc, "No observer service?");
     if (obsSvc) {
-      static const char16_t kShutdownPersist[] =
-        {'s','h','u','t','d','o','w','n','-','p','e','r','s','i','s','t','\0'};
+      static const char16_t kShutdownPersist[] = MOZ_UTF16("shutdown-persist");
       obsSvc->NotifyObservers(nullptr, "profile-change-net-teardown", kShutdownPersist);
       obsSvc->NotifyObservers(nullptr, "profile-change-teardown", kShutdownPersist);
 
       // Phase 2c: Now that things are torn down, force JS GC so that things which depend on
       // resources which are about to go away in "profile-before-change" are destroyed first.
 
       nsCOMPtr<nsIJSRuntimeService> rtsvc
         (do_GetService("@mozilla.org/js/xpc/RuntimeService;1"));