@Override
 public Tab createFrozenTab(TabState state, int id, int index) {
   ChromeTab tab =
       ChromeTab.createFrozenTabFromState(
           id, mActivity, state.isIncognito(), mNativeWindow, state.parentId, state);
   boolean selectTab =
       mOrderController.willOpenInForeground(TabLaunchType.FROM_RESTORE, state.isIncognito());
   tab.initialize(null, mTabContentManager, !selectTab);
   assert state.isIncognito() == mIncognito;
   mTabModel.addTab(tab, index, TabLaunchType.FROM_RESTORE);
   return tab;
 }
Beispiel #2
0
 /**
  * Creates a frozen Tab. This Tab is not meant to be used or unfrozen -- it is only used as a
  * placeholder until the real Tab can be created. The index is ignored in DocumentMode because
  * Android handles the ordering of Tabs.
  */
 @Override
 public Tab createFrozenTab(TabState state, int id, int index) {
   return ChromeTab.createFrozenTabFromState(
       id, null, state.isIncognito(), null, Tab.INVALID_TAB_ID, state);
 }