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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java

Issue 2207933002: Reland of Separate deferred startup into tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix one-line. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
index 313fa875b0730fb2c249bde0162577031f40e06e..51ed88feda1dd10d21a747a9d99999674dae8cbd 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
@@ -383,9 +383,7 @@ public class CustomTabActivity extends ChromeActivity {
}
DataUseTabUIManager.onCustomTabInitialNavigation(mMainTab, packageName, url);
- if (mHasCreatedTabEarly) {
- if (!mMainTab.isLoading()) postDeferredStartupIfNeeded();
- } else {
+ if (!mHasCreatedTabEarly) {
loadUrlInTab(mMainTab, new LoadUrlParams(url),
IntentHandler.getTimestampFromIntent(getIntent()));
}
@@ -464,7 +462,6 @@ public class CustomTabActivity extends ChromeActivity {
setActiveContentHandler(mCustomTabContentHandler);
if (getSavedInstanceState() != null || !mIsInitialStart) {
-
if (mIntentDataProvider.isOpenedByChrome()) {
RecordUserAction.record("ChromeGeneratedCustomTab.StartedReopened");
} else {
@@ -482,6 +479,7 @@ public class CustomTabActivity extends ChromeActivity {
RecordUserAction.record("CustomTabs.StartedInitially");
}
}
+ if (mHasCreatedTabEarly && !mMainTab.isLoading()) postDeferredStartupIfNeeded();
mIsInitialStart = false;
}

Powered by Google App Engine
This is Rietveld 408576698