diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 21e951ca9be..34d35660bce 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,4 +1,5 @@ -#Mon Nov 02 13:44:39 GMT 2015distributionBase=GRADLE_USER_HOME +#Mon Nov 02 13:44:39 GMT 2015 +distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java index 29324aaff82..1c7ced4d4e2 100644 --- a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java +++ b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java @@ -23,12 +23,15 @@ import org.mozilla.gecko.db.SuggestedSites; import org.mozilla.gecko.distribution.Distribution; import org.mozilla.gecko.dlc.DownloadContentService; import org.mozilla.gecko.favicons.Favicons; +import org.mozilla.gecko.favicons.LoadFaviconTask; import org.mozilla.gecko.favicons.OnFaviconLoadedListener; import org.mozilla.gecko.favicons.decoders.IconDirectoryEntry; import org.mozilla.gecko.firstrun.FirstrunAnimationContainer; import org.mozilla.gecko.gfx.DynamicToolbarAnimator; import org.mozilla.gecko.gfx.ImmutableViewportMetrics; import org.mozilla.gecko.gfx.LayerView; +import org.mozilla.gecko.health.HealthRecorder; +import org.mozilla.gecko.health.SessionInformation; import org.mozilla.gecko.home.BrowserSearch; import org.mozilla.gecko.home.HomeBanner; import org.mozilla.gecko.home.HomeConfig.PanelType; @@ -65,7 +68,6 @@ import org.mozilla.gecko.trackingprotection.TrackingProtectionPrompt; import org.mozilla.gecko.util.ActivityUtils; import org.mozilla.gecko.util.Clipboard; import org.mozilla.gecko.util.EventCallback; -import org.mozilla.gecko.util.Experiments; import org.mozilla.gecko.util.FloatUtils; import org.mozilla.gecko.util.GamepadUtils; import org.mozilla.gecko.util.GeckoEventListener; @@ -87,6 +89,7 @@ import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.ContentResolver; +import android.content.ContentValues; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; @@ -106,6 +109,7 @@ import android.nfc.NfcEvent; import android.os.Build; import android.os.Bundle; import android.os.StrictMode; +import android.provider.MediaStore; import android.support.design.widget.Snackbar; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; @@ -3045,8 +3049,6 @@ public class BrowserApp extends GeckoApp final MenuItem forward = aMenu.findItem(R.id.forward); final MenuItem share = aMenu.findItem(R.id.share); final MenuItem quickShare = aMenu.findItem(R.id.quickshare); - final MenuItem bookmarksList = aMenu.findItem(R.id.bookmarks_list); - final MenuItem historyList = aMenu.findItem(R.id.history_list); final MenuItem saveAsPDF = aMenu.findItem(R.id.save_as_pdf); final MenuItem print = aMenu.findItem(R.id.print); final MenuItem charEncoding = aMenu.findItem(R.id.char_encoding); @@ -3256,11 +3258,6 @@ public class BrowserApp extends GeckoApp MenuUtils.safeSetVisible(aMenu, R.id.addons, false); } - if (!SwitchBoard.isInExperiment(this, Experiments.BOOKMARKS_HISTORY_MENU)) { - bookmarksList.setVisible(false); - historyList.setVisible(false); - } - return true; } @@ -3389,20 +3386,6 @@ public class BrowserApp extends GeckoApp return true; } - if (itemId == R.id.bookmarks_list) { - final String url = AboutPages.getURLForBuiltinPanelType(PanelType.BOOKMARKS); - Tabs.getInstance().loadUrl(url); - Telemetry.startUISession(TelemetryContract.Session.EXPERIMENT, Experiments.BOOKMARKS_HISTORY_MENU); - return true; - } - - if (itemId == R.id.history_list) { - final String url = AboutPages.getURLForBuiltinPanelType(PanelType.HISTORY); - Tabs.getInstance().loadUrl(url); - Telemetry.startUISession(TelemetryContract.Session.EXPERIMENT, Experiments.BOOKMARKS_HISTORY_MENU); - return true; - } - if (itemId == R.id.save_as_pdf) { Telemetry.sendUIEvent(TelemetryContract.Event.SAVE, TelemetryContract.Method.MENU, "pdf"); GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("SaveAs:PDF", null)); diff --git a/mobile/android/base/java/org/mozilla/gecko/home/HomePager.java b/mobile/android/base/java/org/mozilla/gecko/home/HomePager.java index 96c80366a87..9a777d14749 100644 --- a/mobile/android/base/java/org/mozilla/gecko/home/HomePager.java +++ b/mobile/android/base/java/org/mozilla/gecko/home/HomePager.java @@ -17,7 +17,6 @@ import org.mozilla.gecko.animation.PropertyAnimator; import org.mozilla.gecko.animation.ViewHelper; import org.mozilla.gecko.home.HomeAdapter.OnAddPanelListener; import org.mozilla.gecko.home.HomeConfig.PanelConfig; -import org.mozilla.gecko.util.Experiments; import org.mozilla.gecko.util.ThreadUtils; import android.content.Context; @@ -288,9 +287,6 @@ public class HomePager extends ViewPager { * * HomePager has not loaded yet * * Panel with the given panelId cannot be found * - * If you're trying to open a built-in panel, consider loading the panel url directly with - * {@link org.mozilla.gecko.AboutPages#getURLForBuiltinPanelType(HomeConfig.PanelType)}. - * * @param panelId of the home panel to be shown. */ public void showPanel(String panelId) { @@ -529,7 +525,6 @@ public class HomePager extends ViewPager { Telemetry.stopUISession(mCurrentPanelSession, mCurrentPanelSessionSuffix); mCurrentPanelSession = null; mCurrentPanelSessionSuffix = null; - Telemetry.stopUISession(TelemetryContract.Session.EXPERIMENT, Experiments.BOOKMARKS_HISTORY_MENU); } } } diff --git a/mobile/android/base/java/org/mozilla/gecko/util/Experiments.java b/mobile/android/base/java/org/mozilla/gecko/util/Experiments.java deleted file mode 100644 index 797317c4c1f..00000000000 --- a/mobile/android/base/java/org/mozilla/gecko/util/Experiments.java +++ /dev/null @@ -1,13 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. */ - -package org.mozilla.gecko.util; - -/** - * This class should reflect the experiment names found in the Switchboard experiments config here: - * https://github.com/mozilla-services/switchboard-experiments - */ -public class Experiments { - public static final String BOOKMARKS_HISTORY_MENU = "bookmark-history-menu"; -} diff --git a/mobile/android/base/moz.build b/mobile/android/base/moz.build index f327d809aa1..bec71d953d7 100644 --- a/mobile/android/base/moz.build +++ b/mobile/android/base/moz.build @@ -97,7 +97,6 @@ gujar.sources += ['java/org/mozilla/gecko/' + x for x in [ 'util/ColorUtils.java', 'util/DrawableUtil.java', 'util/EventCallback.java', - 'util/Experiments.java', 'util/FileUtils.java', 'util/FloatUtils.java', 'util/GamepadUtils.java', diff --git a/mobile/android/base/resources/menu-large-v11/browser_app_menu.xml b/mobile/android/base/resources/menu-large-v11/browser_app_menu.xml index 2da82f85899..b64128ee9a4 100644 --- a/mobile/android/base/resources/menu-large-v11/browser_app_menu.xml +++ b/mobile/android/base/resources/menu-large-v11/browser_app_menu.xml @@ -54,12 +54,6 @@ - - - - diff --git a/mobile/android/base/resources/menu-v11/browser_app_menu.xml b/mobile/android/base/resources/menu-v11/browser_app_menu.xml index bc4be2b1f24..1a3675c2d30 100644 --- a/mobile/android/base/resources/menu-v11/browser_app_menu.xml +++ b/mobile/android/base/resources/menu-v11/browser_app_menu.xml @@ -54,12 +54,6 @@ - - - - diff --git a/mobile/android/base/resources/menu-xlarge-v11/browser_app_menu.xml b/mobile/android/base/resources/menu-xlarge-v11/browser_app_menu.xml index 122d89db47a..2de44ccdd59 100644 --- a/mobile/android/base/resources/menu-xlarge-v11/browser_app_menu.xml +++ b/mobile/android/base/resources/menu-xlarge-v11/browser_app_menu.xml @@ -54,12 +54,6 @@ - - - - diff --git a/mobile/android/base/resources/menu/browser_app_menu.xml b/mobile/android/base/resources/menu/browser_app_menu.xml index 2eee65a476f..85fa1ec3e3f 100644 --- a/mobile/android/base/resources/menu/browser_app_menu.xml +++ b/mobile/android/base/resources/menu/browser_app_menu.xml @@ -39,12 +39,6 @@ android:title="@string/desktop_mode" android:checkable="true" /> - - - -