Bug 1240549 - Put re-enter search mode functionality behind a switchboard flag. r=margaret

--HG--
extra : commitid : JiLtlSdNDN8
extra : rebase_source : 06c5cb5c1263f6aefe3fc293b69abbe3da239a6f
This commit is contained in:
Chenxia Liu 2016-01-27 16:40:55 -08:00
Родитель 557cc3a79f
Коммит 58e4aebbf3
2 изменённых файлов: 5 добавлений и 1 удалений

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

@ -2274,7 +2274,7 @@ public class BrowserApp extends GeckoApp
mBrowserToolbar.startEditing(url, animator);
final boolean isUserSearchTerm = !TextUtils.isEmpty(selectedTab.getUserRequested());
if (isUserSearchTerm && AppConstants.NIGHTLY_BUILD) {
if (isUserSearchTerm && SwitchBoard.isInExperiment(getContext(), Experiments.SEARCH_TERM)) {
showBrowserSearchAfterAnimation(animator);
} else {
showHomePagerWithAnimator(panelId, animator);

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

@ -9,5 +9,9 @@ package org.mozilla.gecko.util;
* https://github.com/mozilla-services/switchboard-experiments
*/
public class Experiments {
// Display History and Bookmarks in 3-dot menu.
public static final String BOOKMARKS_HISTORY_MENU = "bookmark-history-menu";
// Show search mode (instead of home panels) when tapping on urlbar if there is a search term in the urlbar.
public static final String SEARCH_TERM = "search-term";
}