Chromium Code Reviews| 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; | 5 package org.chromium.chrome.browser; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 import android.content.Intent; | 8 import android.content.Intent; |
| 9 import android.content.SharedPreferences; | 9 import android.content.SharedPreferences; |
| 10 import android.content.pm.ResolveInfo; | 10 import android.content.pm.ResolveInfo; |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 278 PrecacheLauncher.updatePrecachingEnabled(mAppContext); | 278 PrecacheLauncher.updatePrecachingEnabled(mAppContext); |
| 279 | 279 |
| 280 if (ChromeWebApkHost.isEnabled()) { | 280 if (ChromeWebApkHost.isEnabled()) { |
| 281 WebApkVersionManager.updateWebApksIfNeeded(); | 281 WebApkVersionManager.updateWebApksIfNeeded(); |
| 282 } | 282 } |
| 283 | 283 |
| 284 removeSnapshotDatabase(); | 284 removeSnapshotDatabase(); |
| 285 | 285 |
| 286 cacheIsChromeDefaultBrowser(); | 286 cacheIsChromeDefaultBrowser(); |
| 287 | 287 |
| 288 DefaultBrowserInfo.initBrowserFetcher(); | |
|
Maria
2017/02/16 05:41:12
Please either move the cache check to use the resu
| |
| 289 | |
| 288 // Warm up all web app shared prefs. This must be run after the WebappRegistry | 290 // Warm up all web app shared prefs. This must be run after the WebappRegistry |
| 289 // instance is initialized. | 291 // instance is initialized. |
| 290 WebappRegistry.warmUpSharedPrefs(); | 292 WebappRegistry.warmUpSharedPrefs(); |
| 291 | 293 |
| 292 return null; | 294 return null; |
| 293 } finally { | 295 } finally { |
| 294 TraceEvent.end("ChromeBrowserInitializer.onDeferredStartup.d oInBackground"); | 296 TraceEvent.end("ChromeBrowserInitializer.onDeferredStartup.d oInBackground"); |
| 295 } | 297 } |
| 296 } | 298 } |
| 297 | 299 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 379 } | 381 } |
| 380 | 382 |
| 381 /** | 383 /** |
| 382 * @return Whether deferred startup has been completed. | 384 * @return Whether deferred startup has been completed. |
| 383 */ | 385 */ |
| 384 @VisibleForTesting | 386 @VisibleForTesting |
| 385 public boolean isDeferredStartupCompleteForApp() { | 387 public boolean isDeferredStartupCompleteForApp() { |
| 386 return mDeferredStartupCompletedForApp; | 388 return mDeferredStartupCompletedForApp; |
| 387 } | 389 } |
| 388 } | 390 } |
| OLD | NEW |