| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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; | 5 package org.chromium.chrome.browser; |
| 6 | 6 |
| 7 import android.app.Activity; | 7 import android.app.Activity; |
| 8 import android.content.Context; | 8 import android.content.Context; |
| 9 import android.content.Intent; | 9 import android.content.Intent; |
| 10 import android.content.SharedPreferences; | 10 import android.content.SharedPreferences; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 import org.chromium.chrome.browser.sync.SyncController; | 84 import org.chromium.chrome.browser.sync.SyncController; |
| 85 import org.chromium.chrome.browser.tab.AuthenticatorNavigationInterceptor; | 85 import org.chromium.chrome.browser.tab.AuthenticatorNavigationInterceptor; |
| 86 import org.chromium.chrome.browser.tab.Tab; | 86 import org.chromium.chrome.browser.tab.Tab; |
| 87 import org.chromium.chrome.browser.tabmodel.TabModelSelector; | 87 import org.chromium.chrome.browser.tabmodel.TabModelSelector; |
| 88 import org.chromium.chrome.browser.tabmodel.document.ActivityDelegateImpl; | 88 import org.chromium.chrome.browser.tabmodel.document.ActivityDelegateImpl; |
| 89 import org.chromium.chrome.browser.tabmodel.document.DocumentTabModelSelector; | 89 import org.chromium.chrome.browser.tabmodel.document.DocumentTabModelSelector; |
| 90 import org.chromium.chrome.browser.tabmodel.document.StorageDelegate; | 90 import org.chromium.chrome.browser.tabmodel.document.StorageDelegate; |
| 91 import org.chromium.chrome.browser.tabmodel.document.TabDelegate; | 91 import org.chromium.chrome.browser.tabmodel.document.TabDelegate; |
| 92 import org.chromium.chrome.browser.util.FeatureUtilities; | 92 import org.chromium.chrome.browser.util.FeatureUtilities; |
| 93 import org.chromium.chrome.browser.webapps.WebApkBuilder; | 93 import org.chromium.chrome.browser.webapps.WebApkBuilder; |
| 94 import org.chromium.components.sync.signin.AccountManagerDelegate; |
| 95 import org.chromium.components.sync.signin.AccountManagerHelper; |
| 96 import org.chromium.components.sync.signin.SystemAccountManagerDelegate; |
| 94 import org.chromium.content.app.ContentApplication; | 97 import org.chromium.content.app.ContentApplication; |
| 95 import org.chromium.content.browser.ChildProcessCreationParams; | 98 import org.chromium.content.browser.ChildProcessCreationParams; |
| 96 import org.chromium.content.browser.ChildProcessLauncher; | 99 import org.chromium.content.browser.ChildProcessLauncher; |
| 97 import org.chromium.content.browser.ContentViewStatics; | 100 import org.chromium.content.browser.ContentViewStatics; |
| 98 import org.chromium.content.common.ContentSwitches; | 101 import org.chromium.content.common.ContentSwitches; |
| 99 import org.chromium.policy.AppRestrictionsProvider; | 102 import org.chromium.policy.AppRestrictionsProvider; |
| 100 import org.chromium.policy.CombinedPolicyProvider; | 103 import org.chromium.policy.CombinedPolicyProvider; |
| 101 import org.chromium.policy.CombinedPolicyProvider.PolicyChangeListener; | 104 import org.chromium.policy.CombinedPolicyProvider.PolicyChangeListener; |
| 102 import org.chromium.printing.PrintingController; | 105 import org.chromium.printing.PrintingController; |
| 103 import org.chromium.sync.signin.AccountManagerDelegate; | |
| 104 import org.chromium.sync.signin.AccountManagerHelper; | |
| 105 import org.chromium.sync.signin.SystemAccountManagerDelegate; | |
| 106 import org.chromium.ui.UiUtils; | 106 import org.chromium.ui.UiUtils; |
| 107 import org.chromium.ui.base.ActivityWindowAndroid; | 107 import org.chromium.ui.base.ActivityWindowAndroid; |
| 108 import org.chromium.ui.base.ResourceBundle; | 108 import org.chromium.ui.base.ResourceBundle; |
| 109 | 109 |
| 110 import java.lang.ref.WeakReference; | 110 import java.lang.ref.WeakReference; |
| 111 import java.util.Locale; | 111 import java.util.Locale; |
| 112 | 112 |
| 113 /** | 113 /** |
| 114 * Basic application functionality that should be shared among all browser appli
cations that use | 114 * Basic application functionality that should be shared among all browser appli
cations that use |
| 115 * chrome layer. | 115 * chrome layer. |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 * Caches flags that are needed by Activities that launch before the native
library is loaded | 862 * Caches flags that are needed by Activities that launch before the native
library is loaded |
| 863 * and stores them in SharedPreferences. Because this function is called dur
ing launch after the | 863 * and stores them in SharedPreferences. Because this function is called dur
ing launch after the |
| 864 * library has loaded, they won't affect the next launch until Chrome is res
tarted. | 864 * library has loaded, they won't affect the next launch until Chrome is res
tarted. |
| 865 */ | 865 */ |
| 866 private void cacheNativeFlags() { | 866 private void cacheNativeFlags() { |
| 867 if (sIsFinishedCachingNativeFlags) return; | 867 if (sIsFinishedCachingNativeFlags) return; |
| 868 FeatureUtilities.cacheNativeFlags(this); | 868 FeatureUtilities.cacheNativeFlags(this); |
| 869 sIsFinishedCachingNativeFlags = true; | 869 sIsFinishedCachingNativeFlags = true; |
| 870 } | 870 } |
| 871 } | 871 } |
| OLD | NEW |