Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.preferences.privacy; | 5 package org.chromium.chrome.browser.preferences.privacy; |
| 6 | 6 |
| 7 import android.app.Fragment; | 7 import android.app.Fragment; |
| 8 import android.app.FragmentManager; | 8 import android.app.FragmentManager; |
| 9 import android.content.Context; | 9 import android.content.Context; |
| 10 import android.os.Bundle; | 10 import android.os.Bundle; |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 import org.chromium.chrome.browser.preferences.Preferences; | 23 import org.chromium.chrome.browser.preferences.Preferences; |
| 24 | 24 |
| 25 import java.util.Locale; | 25 import java.util.Locale; |
| 26 | 26 |
| 27 /** | 27 /** |
| 28 * Fragment with a {@link TabLayout} containing a basic and an advanced version of the CBD dialog. | 28 * Fragment with a {@link TabLayout} containing a basic and an advanced version of the CBD dialog. |
| 29 */ | 29 */ |
| 30 public class ClearBrowsingDataTabsFragment extends Fragment { | 30 public class ClearBrowsingDataTabsFragment extends Fragment { |
| 31 public static final int CBD_TAB_COUNT = 2; | 31 public static final int CBD_TAB_COUNT = 2; |
| 32 | 32 |
| 33 public ClearBrowsingDataTabsFragment() {} | 33 public ClearBrowsingDataTabsFragment() { |
|
msramek
2017/02/08 10:55:56
Note that migrating syncable preferences is someti
dullweber
2017/02/08 23:03:18
This code also isn't executed when chrome starts b
| |
| 34 PrefServiceBridge.getInstance().migrateBrowsingDataPreferences(); | |
|
msramek
2017/02/08 10:55:56
Please add a TODO to remove this code in, let's sa
dullweber
2017/02/08 23:03:18
Done.
| |
| 35 } | |
| 34 | 36 |
| 35 public static boolean isFeatureEnabled() { | 37 public static boolean isFeatureEnabled() { |
|
msramek
2017/02/08 10:55:55
Javadocs for public methods plz :)
dullweber
2017/02/08 23:03:18
Done.
| |
| 36 return ChromeFeatureList.isEnabled(ChromeFeatureList.TABS_IN_CBD); | 38 return ChromeFeatureList.isEnabled(ChromeFeatureList.TABS_IN_CBD); |
| 37 } | 39 } |
| 38 | 40 |
| 39 @Override | 41 @Override |
| 40 public void onCreate(Bundle savedInstanceState) { | 42 public void onCreate(Bundle savedInstanceState) { |
| 41 super.onCreate(savedInstanceState); | 43 super.onCreate(savedInstanceState); |
| 42 } | 44 } |
| 43 | 45 |
| 44 /* | 46 /* |
| 45 * RTL is broken for ViewPager: https://code.google.com/p/android/issues/det ail?id=56831 | 47 * RTL is broken for ViewPager: https://code.google.com/p/android/issues/det ail?id=56831 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 PrefServiceBridge.getInstance().setLastSelectedClearBrowsingDataTab( tabIndex); | 134 PrefServiceBridge.getInstance().setLastSelectedClearBrowsingDataTab( tabIndex); |
| 133 } | 135 } |
| 134 | 136 |
| 135 @Override | 137 @Override |
| 136 public void onTabUnselected(TabLayout.Tab tab) {} | 138 public void onTabUnselected(TabLayout.Tab tab) {} |
| 137 | 139 |
| 138 @Override | 140 @Override |
| 139 public void onTabReselected(TabLayout.Tab tab) {} | 141 public void onTabReselected(TabLayout.Tab tab) {} |
| 140 } | 142 } |
| 141 } | 143 } |
| OLD | NEW |