Backed out changeset d7587396a9ad for busted gradle wrapper

--HG--
extra : commitid : Fjk1eZ0Ziqd
extra : amend_source : 59455814971b02f0681395033f1fd8260e50aaee
This commit is contained in:
Margaret Leibovic 2016-01-25 09:13:07 -05:00
Родитель a3901148db
Коммит 144f258384
9 изменённых файлов: 7 добавлений и 66 удалений

3
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 distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

Просмотреть файл

@ -23,12 +23,15 @@ import org.mozilla.gecko.db.SuggestedSites;
import org.mozilla.gecko.distribution.Distribution; import org.mozilla.gecko.distribution.Distribution;
import org.mozilla.gecko.dlc.DownloadContentService; import org.mozilla.gecko.dlc.DownloadContentService;
import org.mozilla.gecko.favicons.Favicons; import org.mozilla.gecko.favicons.Favicons;
import org.mozilla.gecko.favicons.LoadFaviconTask;
import org.mozilla.gecko.favicons.OnFaviconLoadedListener; import org.mozilla.gecko.favicons.OnFaviconLoadedListener;
import org.mozilla.gecko.favicons.decoders.IconDirectoryEntry; import org.mozilla.gecko.favicons.decoders.IconDirectoryEntry;
import org.mozilla.gecko.firstrun.FirstrunAnimationContainer; import org.mozilla.gecko.firstrun.FirstrunAnimationContainer;
import org.mozilla.gecko.gfx.DynamicToolbarAnimator; import org.mozilla.gecko.gfx.DynamicToolbarAnimator;
import org.mozilla.gecko.gfx.ImmutableViewportMetrics; import org.mozilla.gecko.gfx.ImmutableViewportMetrics;
import org.mozilla.gecko.gfx.LayerView; 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.BrowserSearch;
import org.mozilla.gecko.home.HomeBanner; import org.mozilla.gecko.home.HomeBanner;
import org.mozilla.gecko.home.HomeConfig.PanelType; 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.ActivityUtils;
import org.mozilla.gecko.util.Clipboard; import org.mozilla.gecko.util.Clipboard;
import org.mozilla.gecko.util.EventCallback; import org.mozilla.gecko.util.EventCallback;
import org.mozilla.gecko.util.Experiments;
import org.mozilla.gecko.util.FloatUtils; import org.mozilla.gecko.util.FloatUtils;
import org.mozilla.gecko.util.GamepadUtils; import org.mozilla.gecko.util.GamepadUtils;
import org.mozilla.gecko.util.GeckoEventListener; import org.mozilla.gecko.util.GeckoEventListener;
@ -87,6 +89,7 @@ import android.app.Notification;
import android.app.NotificationManager; import android.app.NotificationManager;
import android.app.PendingIntent; import android.app.PendingIntent;
import android.content.ContentResolver; import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context; import android.content.Context;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.content.Intent; import android.content.Intent;
@ -106,6 +109,7 @@ import android.nfc.NfcEvent;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.os.StrictMode; import android.os.StrictMode;
import android.provider.MediaStore;
import android.support.design.widget.Snackbar; import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment; import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager; 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 forward = aMenu.findItem(R.id.forward);
final MenuItem share = aMenu.findItem(R.id.share); final MenuItem share = aMenu.findItem(R.id.share);
final MenuItem quickShare = aMenu.findItem(R.id.quickshare); 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 saveAsPDF = aMenu.findItem(R.id.save_as_pdf);
final MenuItem print = aMenu.findItem(R.id.print); final MenuItem print = aMenu.findItem(R.id.print);
final MenuItem charEncoding = aMenu.findItem(R.id.char_encoding); 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); MenuUtils.safeSetVisible(aMenu, R.id.addons, false);
} }
if (!SwitchBoard.isInExperiment(this, Experiments.BOOKMARKS_HISTORY_MENU)) {
bookmarksList.setVisible(false);
historyList.setVisible(false);
}
return true; return true;
} }
@ -3389,20 +3386,6 @@ public class BrowserApp extends GeckoApp
return true; 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) { if (itemId == R.id.save_as_pdf) {
Telemetry.sendUIEvent(TelemetryContract.Event.SAVE, TelemetryContract.Method.MENU, "pdf"); Telemetry.sendUIEvent(TelemetryContract.Event.SAVE, TelemetryContract.Method.MENU, "pdf");
GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("SaveAs:PDF", null)); GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("SaveAs:PDF", null));

Просмотреть файл

@ -17,7 +17,6 @@ import org.mozilla.gecko.animation.PropertyAnimator;
import org.mozilla.gecko.animation.ViewHelper; import org.mozilla.gecko.animation.ViewHelper;
import org.mozilla.gecko.home.HomeAdapter.OnAddPanelListener; import org.mozilla.gecko.home.HomeAdapter.OnAddPanelListener;
import org.mozilla.gecko.home.HomeConfig.PanelConfig; import org.mozilla.gecko.home.HomeConfig.PanelConfig;
import org.mozilla.gecko.util.Experiments;
import org.mozilla.gecko.util.ThreadUtils; import org.mozilla.gecko.util.ThreadUtils;
import android.content.Context; import android.content.Context;
@ -288,9 +287,6 @@ public class HomePager extends ViewPager {
* * HomePager has not loaded yet * * HomePager has not loaded yet
* * Panel with the given panelId cannot be found * * 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. * @param panelId of the home panel to be shown.
*/ */
public void showPanel(String panelId) { public void showPanel(String panelId) {
@ -529,7 +525,6 @@ public class HomePager extends ViewPager {
Telemetry.stopUISession(mCurrentPanelSession, mCurrentPanelSessionSuffix); Telemetry.stopUISession(mCurrentPanelSession, mCurrentPanelSessionSuffix);
mCurrentPanelSession = null; mCurrentPanelSession = null;
mCurrentPanelSessionSuffix = null; mCurrentPanelSessionSuffix = null;
Telemetry.stopUISession(TelemetryContract.Session.EXPERIMENT, Experiments.BOOKMARKS_HISTORY_MENU);
} }
} }
} }

Просмотреть файл

@ -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";
}

Просмотреть файл

@ -97,7 +97,6 @@ gujar.sources += ['java/org/mozilla/gecko/' + x for x in [
'util/ColorUtils.java', 'util/ColorUtils.java',
'util/DrawableUtil.java', 'util/DrawableUtil.java',
'util/EventCallback.java', 'util/EventCallback.java',
'util/Experiments.java',
'util/FileUtils.java', 'util/FileUtils.java',
'util/FloatUtils.java', 'util/FloatUtils.java',
'util/GamepadUtils.java', 'util/GamepadUtils.java',

Просмотреть файл

@ -54,12 +54,6 @@
<item android:id="@+id/new_private_tab" <item android:id="@+id/new_private_tab"
android:title="@string/new_private_tab"/> android:title="@string/new_private_tab"/>
<item android:id="@+id/bookmarks_list"
android:title="@string/bookmarks_title"/>
<item android:id="@+id/history_list"
android:title="@string/history_title"/>
<item android:id="@+id/find_in_page" <item android:id="@+id/find_in_page"
android:title="@string/find_in_page" /> android:title="@string/find_in_page" />

Просмотреть файл

@ -54,12 +54,6 @@
<item android:id="@+id/new_private_tab" <item android:id="@+id/new_private_tab"
android:title="@string/new_private_tab"/> android:title="@string/new_private_tab"/>
<item android:id="@+id/bookmarks_list"
android:title="@string/bookmarks_title"/>
<item android:id="@+id/history_list"
android:title="@string/history_title"/>
<item android:id="@+id/find_in_page" <item android:id="@+id/find_in_page"
android:title="@string/find_in_page" /> android:title="@string/find_in_page" />

Просмотреть файл

@ -54,12 +54,6 @@
<item android:id="@+id/new_private_tab" <item android:id="@+id/new_private_tab"
android:title="@string/new_private_tab"/> android:title="@string/new_private_tab"/>
<item android:id="@+id/bookmarks_list"
android:title="@string/bookmarks_title"/>
<item android:id="@+id/history_list"
android:title="@string/history_title"/>
<item android:id="@+id/find_in_page" <item android:id="@+id/find_in_page"
android:title="@string/find_in_page" /> android:title="@string/find_in_page" />

Просмотреть файл

@ -39,12 +39,6 @@
android:title="@string/desktop_mode" android:title="@string/desktop_mode"
android:checkable="true" /> android:checkable="true" />
<item android:id="@+id/bookmarks_list"
android:title="@string/bookmarks_title"/>
<item android:id="@+id/history_list"
android:title="@string/history_title"/>
<item android:id="@+id/page" <item android:id="@+id/page"
android:title="@string/page"> android:title="@string/page">