Bug 1246792 - Use existing constant for times.json. r=ahunt draft
authorMichael Comella <michael.l.comella@gmail.com>
Wed, 06 Apr 2016 13:26:28 -0700
changeset 348174 efb16e791e333280a3f973fc25b09bb361fcc3bd
parent 347397 20df8310f734ecc938f1ad53e27759253ae14040
child 517797 800fa3191c14808bf24828bfc72e029f7764cb05
push id14767
push usermichael.l.comella@gmail.com
push dateWed, 06 Apr 2016 20:26:35 +0000
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
@@ -1013,26 +1013,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;
     }