Bug 722661 - Part 4: Remove restoreMode command line argument. r=mfinkle

This commit is contained in:
Brian Nicholson
2012-10-29 16:34:29 -07:00
parent 6b41500751
commit 1b837aed0f
6 changed files with 22 additions and 42 deletions

View File

@@ -127,10 +127,6 @@ public class GeckoAppShell
static private final boolean LOGGING = false;
static public final int RESTORE_NONE = 0;
static public final int RESTORE_OOM = 1;
static public final int RESTORE_CRASH = 2;
static private File sCacheFile = null;
static private int sFreeSpace = -1;
static File sHomeDir = null;
@@ -501,7 +497,7 @@ public class GeckoAppShell
}
}
public static void runGecko(String apkPath, String args, String url, String type, int restoreMode) {
public static void runGecko(String apkPath, String args, String url, String type) {
WebAppAllocator.getInstance();
Looper.prepare();
@@ -521,8 +517,6 @@ public class GeckoAppShell
combinedArgs += " -url " + url;
if (type != null)
combinedArgs += " " + type;
if (restoreMode != RESTORE_NONE)
combinedArgs += " -restoremode " + restoreMode;
DisplayMetrics metrics = GeckoApp.mAppContext.getResources().getDisplayMetrics();
combinedArgs += " -width " + metrics.widthPixels + " -height " + metrics.heightPixels;