Bug 957131 - Synced bookmarks appear in guest mode but not in default profile. r=rnewman

This commit is contained in:
Wesley Johnston
2014-01-14 21:45:59 -08:00
parent 89317fab8a
commit a8fe6d77a8
11 changed files with 32 additions and 24 deletions

View File

@@ -26,6 +26,7 @@ public final class GeckoProfile {
private static final String LOGTAG = "GeckoProfile";
// Used to "lock" the guest profile, so that we'll always restart in it
private static final String LOCK_FILE_NAME = ".active_lock";
public static final String DEFAULT_PROFILE = "default";
private static HashMap<String, GeckoProfile> sProfileCache = new HashMap<String, GeckoProfile>();
private static String sDefaultProfileName = null;
@@ -113,7 +114,7 @@ public final class GeckoProfile {
if (TextUtils.isEmpty(profileName) && profileDir == null) {
profileName = GeckoProfile.findDefaultProfile(context);
if (profileName == null)
profileName = "default";
profileName = DEFAULT_PROFILE;
}
// actually try to look up the profile