| Index: chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModel.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModel.java b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModel.java
|
| index 95b3d5392404d8159951a192c29496f9fe91ebd1..e7d9fd62a100003a99e5788cfc11f912be4fea9b 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModel.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModel.java
|
| @@ -4,12 +4,8 @@
|
|
|
| package org.chromium.chrome.browser.tabmodel.document;
|
|
|
| -import android.content.Intent;
|
| -
|
| import org.chromium.base.VisibleForTesting;
|
| -import org.chromium.chrome.browser.TabState;
|
| import org.chromium.chrome.browser.incognito.IncognitoNotificationManager;
|
| -import org.chromium.chrome.browser.tab.Tab;
|
| import org.chromium.chrome.browser.tabmodel.EmptyTabModel;
|
| import org.chromium.chrome.browser.tabmodel.OffTheRecordTabModel;
|
| import org.chromium.chrome.browser.tabmodel.TabModel;
|
| @@ -51,102 +47,8 @@ public class OffTheRecordDocumentTabModel extends OffTheRecordTabModel implement
|
| }
|
|
|
| @Override
|
| - public void initializeNative() {
|
| - if (!isDocumentTabModelImplCreated()) return;
|
| - getDelegateDocumentTabModel().initializeNative();
|
| - }
|
| -
|
| - @Override
|
| - public TabState getTabStateForDocument(int tabId) {
|
| - if (!isDocumentTabModelImplCreated()) return null;
|
| - return getDelegateDocumentTabModel().getTabStateForDocument(tabId);
|
| - }
|
| -
|
| - @Override
|
| - public boolean isRetargetable(int tabId) {
|
| - if (!isDocumentTabModelImplCreated()) return false;
|
| - return getDelegateDocumentTabModel().isRetargetable(tabId);
|
| - }
|
| -
|
| - @Override
|
| - public void updateRecentlyClosed() {
|
| - if (isDocumentTabModelImplCreated()) getDelegateDocumentTabModel().updateRecentlyClosed();
|
| - destroyIncognitoIfNecessary();
|
| - }
|
| -
|
| - @Override
|
| - public boolean hasEntryForTabId(int tabId) {
|
| - if (!isDocumentTabModelImplCreated()) return false;
|
| - return getDelegateDocumentTabModel().hasEntryForTabId(tabId);
|
| - }
|
| -
|
| - @Override
|
| - public void updateEntry(Intent intent, Tab tab) {
|
| - if (!isDocumentTabModelImplCreated()) return;
|
| - getDelegateDocumentTabModel().updateEntry(intent, tab);
|
| - }
|
| -
|
| - @Override
|
| - public String getCurrentUrlForDocument(int tabId) {
|
| - if (!isDocumentTabModelImplCreated()) return null;
|
| - return getDelegateDocumentTabModel().getCurrentUrlForDocument(tabId);
|
| - }
|
| -
|
| - @Override
|
| - public boolean isTabStateReady(int tabId) {
|
| - if (!isDocumentTabModelImplCreated()) return false;
|
| - return getDelegateDocumentTabModel().isTabStateReady(tabId);
|
| - }
|
| -
|
| - @Override
|
| public String getInitialUrlForDocument(int tabId) {
|
| if (!isDocumentTabModelImplCreated()) return null;
|
| return getDelegateDocumentTabModel().getInitialUrlForDocument(tabId);
|
| }
|
| -
|
| - @Override
|
| - public void addTab(Intent intent, Tab tab) {
|
| - ensureTabModelImpl();
|
| - getDelegateDocumentTabModel().addTab(intent, tab);
|
| - }
|
| -
|
| - @Override
|
| - public boolean closeTabAt(int index) {
|
| - boolean success = false;
|
| - if (isDocumentTabModelImplCreated()) {
|
| - success = getDelegateDocumentTabModel().closeTabAt(index);
|
| - }
|
| - destroyIncognitoIfNecessary();
|
| - return success;
|
| - }
|
| -
|
| - @Override
|
| - public int getCurrentInitializationStage() {
|
| - if (!isDocumentTabModelImplCreated()) return DocumentTabModelImpl.STATE_UNINITIALIZED;
|
| - return getDelegateDocumentTabModel().getCurrentInitializationStage();
|
| - }
|
| -
|
| - @Override
|
| - public boolean isNativeInitialized() {
|
| - if (!isDocumentTabModelImplCreated()) return false;
|
| - return getDelegateDocumentTabModel().isNativeInitialized();
|
| - }
|
| -
|
| - @Override
|
| - public void addInitializationObserver(InitializationObserver observer) {
|
| - ensureTabModelImpl();
|
| - getDelegateDocumentTabModel().addInitializationObserver(observer);
|
| - }
|
| -
|
| - @Override
|
| - public boolean setLastShownId(int id) {
|
| - if (!isDocumentTabModelImplCreated()) return false;
|
| - return getDelegateDocumentTabModel().setLastShownId(id);
|
| - }
|
| -
|
| - @Override
|
| - public void startTabStateLoad() {
|
| - ensureTabModelImpl();
|
| - getDelegateDocumentTabModel().startTabStateLoad();
|
| - }
|
| }
|
|
|