Bug 995310 - Only create metro folder in metro environment. r=Yoric, a=lsblakk RELEASE_BASE_20140602
authorMarina Samuel <msamuel@mozilla.com>
Fri, 30 May 2014 09:45:41 -0400
changeset 219093 ba4a8f81efdcf000414f192342ccbd14c9626c36
parent 219092 92b1334cfdc41070bad5896618e8e6d8ab7ef8dc
child 219094 4fd52b457b2b3addc6b97619bf3dc0a2fbc6cf4a
push id3
push usergszorc@mozilla.com
push dateWed, 29 Oct 2014 02:45:36 +0000
reviewersYoric, lsblakk
bugs995310
milestone30.0
Bug 995310 - Only create metro folder in metro environment. r=Yoric, a=lsblakk
toolkit/components/crashmonitor/CrashMonitor.jsm
--- a/toolkit/components/crashmonitor/CrashMonitor.jsm
+++ b/toolkit/components/crashmonitor/CrashMonitor.jsm
@@ -180,17 +180,19 @@ this.CrashMonitor = {
 
     // Add shutdown blocker for profile-before-change
     AsyncShutdown.profileBeforeChange.addBlocker(
       "CrashMonitor: Writing notifications to file after receiving profile-before-change",
       CrashMonitorInternal.profileBeforeChangeDeferred.promise
     );
 
     CrashMonitorInternal.initialized = true;
-    OS.File.makeDir(OS.Path.join(OS.Constants.Path.profileDir, "metro"));
+    if (Services.metro && Services.metro.immersive) {
+      OS.File.makeDir(OS.Path.join(OS.Constants.Path.profileDir, "metro"));
+    }
     return promise;
   },
 
   /**
    * Handle registered notifications.
    *
    * Update checkpoint file for every new notification received.
    */