Bug 795053 - Always send the profile to Gecko if it isn't sent in the original intent. r=mfinkle

This commit is contained in:
Wes Johnston 2012-10-03 17:43:21 -07:00
parent 5d4a9e0c25
commit 16aba3c235

View File

@ -71,11 +71,8 @@ public class GeckoThread extends Thread {
String args = mIntent.getStringExtra("args");
// if this isn't the default BrowserApp, send the apps default profile to gecko
if (!(app instanceof BrowserApp)) {
String profile = app.getDefaultProfileName();
args = (args != null ? args : "") + "-P " + profile;
}
String profile = GeckoApp.sIsUsingCustomProfile ? "" : (" -P " + app.getProfile().getName());
args = (args != null ? args : "") + profile;
// and then fire us up
Log.i(LOGTAG, "RunGecko - args = " + args);