Bug 842262 - Keep ProfD == ProfLD on Android; r=glandium

This commit is contained in:
Tim Taubert 2013-02-28 22:31:35 +01:00
parent 5ca09996fd
commit 1d81f3539e

View File

@ -1139,6 +1139,10 @@ nsXREDirProvider::GetUserDataDirectoryHome(nsIFile** aFile, bool aLocal)
if (!homeDir || !*homeDir)
return NS_ERROR_FAILURE;
#ifdef ANDROID /* We want (ProfD == ProfLD) on Android. */
aLocal = false;
#endif
if (aLocal) {
// If $XDG_CACHE_HOME is defined use it, otherwise use $HOME/.cache.
const char* cacheHome = getenv("XDG_CACHE_HOME");