| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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; | 5 package org.chromium.chrome.browser.preferences; |
| 6 | 6 |
| 7 import android.content.Intent; | 7 import android.content.Intent; |
| 8 import android.net.Uri; | 8 import android.net.Uri; |
| 9 import android.os.Bundle; | 9 import android.os.Bundle; |
| 10 import android.os.Handler; | 10 import android.os.Handler; |
| 11 import android.preference.Preference; | 11 import android.preference.Preference; |
| 12 import android.preference.PreferenceFragment; | 12 import android.preference.PreferenceFragment; |
| 13 | 13 |
| 14 import org.chromium.base.ApiCompatibilityUtils; | 14 import org.chromium.base.ApiCompatibilityUtils; |
| 15 import org.chromium.base.VisibleForTesting; | 15 import org.chromium.base.VisibleForTesting; |
| 16 import org.chromium.blimp_public.BlimpClientContext; | 16 import org.chromium.blimp_public.BlimpClientContext; |
| 17 import org.chromium.chrome.R; | 17 import org.chromium.chrome.R; |
| 18 import org.chromium.chrome.browser.ChromeFeatureList; | 18 import org.chromium.chrome.browser.ChromeFeatureList; |
| 19 import org.chromium.chrome.browser.PasswordUIView; | 19 import org.chromium.chrome.browser.PasswordUIView; |
| 20 import org.chromium.chrome.browser.autofill.PersonalDataManager; | 20 import org.chromium.chrome.browser.autofill.PersonalDataManager; |
| 21 import org.chromium.chrome.browser.blimp.BlimpClientContextFactory; | 21 import org.chromium.chrome.browser.blimp.BlimpClientContextFactory; |
| 22 import org.chromium.chrome.browser.blimp.BlimpSettingsCallbacksImpl; | |
| 23 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings; | 22 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings; |
| 24 import org.chromium.chrome.browser.partnercustomizations.HomepageManager; | 23 import org.chromium.chrome.browser.partnercustomizations.HomepageManager; |
| 25 import org.chromium.chrome.browser.preferences.datareduction.DataReductionPrefer
ences; | 24 import org.chromium.chrome.browser.preferences.datareduction.DataReductionPrefer
ences; |
| 26 import org.chromium.chrome.browser.preferences.password.SavePasswordsPreferences
; | 25 import org.chromium.chrome.browser.preferences.password.SavePasswordsPreferences
; |
| 27 import org.chromium.chrome.browser.profiles.Profile; | 26 import org.chromium.chrome.browser.profiles.Profile; |
| 28 import org.chromium.chrome.browser.signin.SigninManager; | 27 import org.chromium.chrome.browser.signin.SigninManager; |
| 29 import org.chromium.chrome.browser.signin.SigninManager.SignInStateObserver; | 28 import org.chromium.chrome.browser.signin.SigninManager.SignInStateObserver; |
| 30 import org.chromium.chrome.browser.sync.ProfileSyncService; | 29 import org.chromium.chrome.browser.sync.ProfileSyncService; |
| 31 import org.chromium.components.sync.AndroidSyncSettings; | 30 import org.chromium.components.sync.AndroidSyncSettings; |
| 32 | 31 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 && !settings.isDataReductionProxyEnabled(); | 242 && !settings.isDataReductionProxyEnabled(); |
| 244 } | 243 } |
| 245 return super.isPreferenceClickDisabledByPolicy(preference); | 244 return super.isPreferenceClickDisabledByPolicy(preference); |
| 246 } | 245 } |
| 247 }; | 246 }; |
| 248 } | 247 } |
| 249 | 248 |
| 250 private void addBlimpPreferences() { | 249 private void addBlimpPreferences() { |
| 251 BlimpClientContext blimpClientContext = BlimpClientContextFactory | 250 BlimpClientContext blimpClientContext = BlimpClientContextFactory |
| 252 .getBlimpClientContextForProfile(Profile.getLastUsedProfile().ge
tOriginalProfile()); | 251 .getBlimpClientContextForProfile(Profile.getLastUsedProfile().ge
tOriginalProfile()); |
| 253 blimpClientContext.attachBlimpPreferences(this, new BlimpSettingsCallbac
ksImpl()); | 252 blimpClientContext.attachBlimpPreferences(this); |
| 254 } | 253 } |
| 255 } | 254 } |
| OLD | NEW |