| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 import org.chromium.chrome.browser.sync.GmsCoreSyncListener; | 83 import org.chromium.chrome.browser.sync.GmsCoreSyncListener; |
| 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.WebApkInstaller; |
| 94 import org.chromium.components.sync.signin.AccountManagerDelegate; | 94 import org.chromium.components.sync.signin.AccountManagerDelegate; |
| 95 import org.chromium.components.sync.signin.AccountManagerHelper; | 95 import org.chromium.components.sync.signin.AccountManagerHelper; |
| 96 import org.chromium.components.sync.signin.SystemAccountManagerDelegate; | 96 import org.chromium.components.sync.signin.SystemAccountManagerDelegate; |
| 97 import org.chromium.content.app.ContentApplication; | 97 import org.chromium.content.app.ContentApplication; |
| 98 import org.chromium.content.browser.ChildProcessCreationParams; | 98 import org.chromium.content.browser.ChildProcessCreationParams; |
| 99 import org.chromium.content.browser.ChildProcessLauncher; | 99 import org.chromium.content.browser.ChildProcessLauncher; |
| 100 import org.chromium.content.browser.ContentViewStatics; | 100 import org.chromium.content.browser.ContentViewStatics; |
| 101 import org.chromium.content.common.ContentSwitches; | 101 import org.chromium.content.common.ContentSwitches; |
| 102 import org.chromium.policy.AppRestrictionsProvider; | 102 import org.chromium.policy.AppRestrictionsProvider; |
| 103 import org.chromium.policy.CombinedPolicyProvider; | 103 import org.chromium.policy.CombinedPolicyProvider; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 } | 355 } |
| 356 | 356 |
| 357 /** | 357 /** |
| 358 * Returns a new instance of VariationsSession. | 358 * Returns a new instance of VariationsSession. |
| 359 */ | 359 */ |
| 360 public VariationsSession createVariationsSession() { | 360 public VariationsSession createVariationsSession() { |
| 361 return new VariationsSession(); | 361 return new VariationsSession(); |
| 362 } | 362 } |
| 363 | 363 |
| 364 /** | 364 /** |
| 365 * Returns factory for building WebAPKs. | 365 * Returns factory for installing WebAPKs. |
| 366 */ | 366 */ |
| 367 public WebApkBuilder createWebApkBuilder() { | 367 public WebApkInstaller createWebApkInstaller() { |
| 368 return null; | 368 return null; |
| 369 } | 369 } |
| 370 | 370 |
| 371 /** | 371 /** |
| 372 * Return a {@link AuthenticatorNavigationInterceptor} for the given {@link
Tab}. | 372 * Return a {@link AuthenticatorNavigationInterceptor} for the given {@link
Tab}. |
| 373 * This can be null if there are no applicable interceptor to be built. | 373 * This can be null if there are no applicable interceptor to be built. |
| 374 */ | 374 */ |
| 375 @SuppressWarnings("unused") | 375 @SuppressWarnings("unused") |
| 376 public AuthenticatorNavigationInterceptor createAuthenticatorNavigationInter
ceptor(Tab tab) { | 376 public AuthenticatorNavigationInterceptor createAuthenticatorNavigationInter
ceptor(Tab tab) { |
| 377 return null; | 377 return null; |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 * Caches flags that are needed by Activities that launch before the native
library is loaded | 857 * Caches flags that are needed by Activities that launch before the native
library is loaded |
| 858 * and stores them in SharedPreferences. Because this function is called dur
ing launch after the | 858 * and stores them in SharedPreferences. Because this function is called dur
ing launch after the |
| 859 * library has loaded, they won't affect the next launch until Chrome is res
tarted. | 859 * library has loaded, they won't affect the next launch until Chrome is res
tarted. |
| 860 */ | 860 */ |
| 861 private void cacheNativeFlags() { | 861 private void cacheNativeFlags() { |
| 862 if (sIsFinishedCachingNativeFlags) return; | 862 if (sIsFinishedCachingNativeFlags) return; |
| 863 FeatureUtilities.cacheNativeFlags(this); | 863 FeatureUtilities.cacheNativeFlags(this); |
| 864 sIsFinishedCachingNativeFlags = true; | 864 sIsFinishedCachingNativeFlags = true; |
| 865 } | 865 } |
| 866 } | 866 } |
| OLD | NEW |