Bug 1246792 - Use existing constant for times.json. r=ahunt
authorMichael Comella <michael.l.comella@gmail.com>
Wed, 06 Apr 2016 13:26:28 -0700
changeset 316414 ecf79242ed01d7a8372bbb8a654c0d3e43d8c1e0
parent 316413 9fb7908df083b09946413585d48d02bba09de934
child 316415 546029898181bdafe1599a35226b23f9c2997856
push id9480
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 17:12:58 +0000
treeherdermozilla-aurora@0d6a91c76a9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahunt
bugs1246792
milestone48.0a1
Bug 1246792 - Use existing constant for times.json. r=ahunt MozReview-Commit-ID: ACtIOPiOSfs
mobile/android/base/java/org/mozilla/gecko/GeckoProfile.java
--- a/mobile/android/base/java/org/mozilla/gecko/GeckoProfile.java
+++ b/mobile/android/base/java/org/mozilla/gecko/GeckoProfile.java
@@ -1041,26 +1041,26 @@ public final class GeckoProfile {
 
         parser.addSection(profileSection);
         parser.write();
 
         enqueueInitialization(profileDir);
 
         // Write out profile creation time, mirroring the logic in nsToolkitProfileService.
         try {
-            FileOutputStream stream = new FileOutputStream(profileDir.getAbsolutePath() + File.separator + "times.json");
+            FileOutputStream stream = new FileOutputStream(profileDir.getAbsolutePath() + File.separator + TIMES_PATH);
             OutputStreamWriter writer = new OutputStreamWriter(stream, Charset.forName("UTF-8"));
             try {
                 writer.append("{\"created\": " + System.currentTimeMillis() + "}\n");
             } finally {
                 writer.close();
             }
         } catch (Exception e) {
             // Best-effort.
-            Log.w(LOGTAG, "Couldn't write times.json.", e);
+            Log.w(LOGTAG, "Couldn't write " + TIMES_PATH, e);
         }
 
         // Initialize pref flag for displaying the start pane for a new profile.
         final SharedPreferences prefs = GeckoSharedPrefs.forProfile(mApplicationContext);
         prefs.edit().putBoolean(FirstrunAnimationContainer.PREF_FIRSTRUN_ENABLED, true).apply();
 
         return profileDir;
     }