Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: mobile/android/base/home/HomeConfigPrefsBackend.java

Issue 29330952: Issue 3127 - Merge conflicts, base 42.0.1 (Closed)
Patch Set: Created Nov. 26, 2015, 11:01 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*- 1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public 2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 5
6 package org.mozilla.gecko.home; 6 package org.mozilla.gecko.home;
7 7
8 import static org.mozilla.gecko.home.HomeConfig.createBuiltinPanelConfig; 8 import static org.mozilla.gecko.home.HomeConfig.createBuiltinPanelConfig;
9 9
10 import java.util.ArrayList; 10 import java.util.ArrayList;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 private State loadDefaultConfig() { 70 private State loadDefaultConfig() {
71 final ArrayList<PanelConfig> panelConfigs = new ArrayList<PanelConfig>() ; 71 final ArrayList<PanelConfig> panelConfigs = new ArrayList<PanelConfig>() ;
72 72
73 panelConfigs.add(createBuiltinPanelConfig(mContext, PanelType.TOP_SITES, 73 panelConfigs.add(createBuiltinPanelConfig(mContext, PanelType.TOP_SITES,
74 EnumSet.of(PanelConfig.Flags.D EFAULT_PANEL))); 74 EnumSet.of(PanelConfig.Flags.D EFAULT_PANEL)));
75 75
76 panelConfigs.add(createBuiltinPanelConfig(mContext, PanelType.BOOKMARKS) ); 76 panelConfigs.add(createBuiltinPanelConfig(mContext, PanelType.BOOKMARKS) );
77 panelConfigs.add(createBuiltinPanelConfig(mContext, PanelType.HISTORY)); 77 panelConfigs.add(createBuiltinPanelConfig(mContext, PanelType.HISTORY));
78 78
79 // We disable Synced Tabs for guest mode / restricted profiles. 79 // We disable Synced/Remote Tabs (see https://issues.adblockplus.org/tic ket/2480)
80 if (RestrictedProfiles.isAllowed(mContext, Restriction.DISALLOW_MODIFY_A CCOUNTS)) {
81 panelConfigs.add(createBuiltinPanelConfig(mContext, PanelType.REMOTE _TABS));
82 }
83 80
84 panelConfigs.add(createBuiltinPanelConfig(mContext, PanelType.RECENT_TAB S)); 81 panelConfigs.add(createBuiltinPanelConfig(mContext, PanelType.RECENT_TAB S));
85 panelConfigs.add(createBuiltinPanelConfig(mContext, PanelType.READING_LI ST)); 82 panelConfigs.add(createBuiltinPanelConfig(mContext, PanelType.READING_LI ST));
86 83
87 return new State(panelConfigs, true); 84 return new State(panelConfigs, true);
88 } 85 }
89 86
90 /** 87 /**
91 * Iterate through the panels to check if they are all disabled. 88 * Iterate through the panels to check if they are all disabled.
92 */ 89 */
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 lbm.unregisterReceiver(mReloadBroadcastReceiver); 395 lbm.unregisterReceiver(mReloadBroadcastReceiver);
399 } 396 }
400 397
401 private class ReloadBroadcastReceiver extends BroadcastReceiver { 398 private class ReloadBroadcastReceiver extends BroadcastReceiver {
402 @Override 399 @Override
403 public void onReceive(Context context, Intent intent) { 400 public void onReceive(Context context, Intent intent) {
404 mReloadListener.onReload(); 401 mReloadListener.onReload();
405 } 402 }
406 } 403 }
407 } 404 }
OLDNEW
« no previous file with comments | « mobile/android/base/AppConstants.java.in ('k') | mobile/android/base/locales/en-US/android_strings.dtd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld