Commit 583b5b5c authored by Mohamed Heikal's avatar Mohamed Heikal Committed by Commit Bot

[Android] Remove dead code

mDelayedInitialTabBehaviorDuringUiInit is a private runnable that is
never set. It looks like it is added here
(https://codereview.chromium.org/2912473003).

Change-Id: Ic612e95340616ab905d594a25471daea62e6fac1
Reviewed-on: https://chromium-review.googlesource.com/1026422Reviewed-by: default avatarYaron Friedman <yfriedman@chromium.org>
Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553698}
parent a2a4d4ba
......@@ -281,11 +281,6 @@ public class ChromeTabbedActivity
private Runnable mShowHistoryRunnable;
/**
* Whether an initial tab needs to be created during UI initialization.
*/
private Runnable mDelayedInitialTabBehaviorDuringUiInit;
/**
* Keeps track of whether or not a specific tab was created based on the startup intent.
*/
......@@ -848,12 +843,7 @@ public class ChromeTabbedActivity
bgViewWrapper.initialize();
}
if (mDelayedInitialTabBehaviorDuringUiInit != null) {
mDelayedInitialTabBehaviorDuringUiInit.run();
mDelayedInitialTabBehaviorDuringUiInit = null;
} else {
mLayoutManager.hideOverview(false);
}
mLayoutManager.hideOverview(false);
mScreenshotMonitor = ScreenshotMonitor.create(ChromeTabbedActivity.this);
......@@ -1093,8 +1083,7 @@ public class ChromeTabbedActivity
&& BrowserActionsTabModelSelector.getInstance().getTotalTabCount() != 0;
mCreatedTabOnStartup = getCurrentTabModel().getCount() > 0
|| mTabModelSelectorImpl.getRestoredTabCount() > 0 || mIntentWithEffect
|| mDelayedInitialTabBehaviorDuringUiInit != null || hasBrowserActionTabs
|| hasTabWaitingForReparenting;
|| hasBrowserActionTabs || hasTabWaitingForReparenting;
// We always need to try to restore tabs. The set of tabs might be empty, but at least
// it will trigger the notification that tab restore is complete which is needed by
......@@ -1115,8 +1104,7 @@ public class ChromeTabbedActivity
// to create a new tab as well.
if (!mCreatedTabOnStartup
|| (!hasTabWaitingForReparenting && activeTabBeingRestored
&& getTabModelSelector().getTotalTabCount() == 0
&& mDelayedInitialTabBehaviorDuringUiInit == null)) {
&& getTabModelSelector().getTotalTabCount() == 0)) {
// If homepage URI is not determined, due to PartnerBrowserCustomizations provider
// async reading, then create a tab at the async reading finished. If it takes
// too long, just create NTP.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment