Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/DeferredStartupHandler.java

Issue 2663373003: [Android] Add options in the context menu of CCT to open in a new Chrome tab or incoginto tab (Closed)
Patch Set: Add lock in initialize function of DefaultBrowserInfo class. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698