Bug 988880 - Disable startup cache on b2g. r=fabrice
authorBobby Holley <bobbyholley@gmail.com>
Mon, 21 Apr 2014 10:20:49 -0700
changeset 179819 87a0bf86dc090dba8660f743f940f1f25d844fd1
parent 179818 956f6d2dfc8157e521e0d34e34de49af509515c8
child 179820 78b0aaa91320739a35d149b7e8524264eb29f4e4
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersfabrice
bugs988880
milestone31.0a1
Bug 988880 - Disable startup cache on b2g. r=fabrice
startupcache/StartupCache.cpp
--- a/startupcache/StartupCache.cpp
+++ b/startupcache/StartupCache.cpp
@@ -88,16 +88,19 @@ static const char sMetroStartupCacheName
 
 StartupCache*
 StartupCache::GetSingleton()
 {
   if (!gStartupCache) {
     if (XRE_GetProcessType() != GeckoProcessType_Default) {
       return nullptr;
     }
+#ifdef MOZ_B2G
+    return nullptr;
+#endif
 
     StartupCache::InitSingleton();
   }
 
   return StartupCache::gStartupCache;
 }
 
 void