| Index: chrome/android/java/src/org/chromium/chrome/browser/tabmodel/IncognitoTabModel.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/OffTheRecordTabModel.java b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/IncognitoTabModel.java
|
| similarity index 91%
|
| rename from chrome/android/java/src/org/chromium/chrome/browser/tabmodel/OffTheRecordTabModel.java
|
| rename to chrome/android/java/src/org/chromium/chrome/browser/tabmodel/IncognitoTabModel.java
|
| index be8f66638969dcda253ca9799bd6b0947fc4eedf..6ce844fcf5c4c4c90433cf73e2a93ab3895ca534 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/OffTheRecordTabModel.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/IncognitoTabModel.java
|
| @@ -22,25 +22,25 @@ import org.chromium.chrome.browser.tab.Tab;
|
| * no Tabs remain, the native model will be destroyed and only rebuilt when a new incognito Tab
|
| * is created.
|
| */
|
| -public class OffTheRecordTabModel implements TabModel {
|
| - /** Creates TabModels for use in OffTheRecordModel. */
|
| - public interface OffTheRecordTabModelDelegate {
|
| +public class IncognitoTabModel implements TabModel {
|
| + /** Creates TabModels for use in IncognitoModel. */
|
| + public interface IncognitoTabModelDelegate {
|
| /** Creates a fully working TabModel to delegate calls to. */
|
| TabModel createTabModel();
|
|
|
| - /** @return Whether OffTheRecord Tabs exist. */
|
| - boolean doOffTheRecordTabsExist();
|
| + /** @return Whether Incognito Tabs exist. */
|
| + boolean doIncognitoTabsExist();
|
| }
|
|
|
| - private final OffTheRecordTabModelDelegate mDelegate;
|
| + private final IncognitoTabModelDelegate mDelegate;
|
| private final ObserverList<TabModelObserver> mObservers = new ObserverList<TabModelObserver>();
|
| private TabModel mDelegateModel;
|
| private boolean mIsAddingTab;
|
|
|
| /**
|
| - * Constructor for OffTheRecordTabModel.
|
| + * Constructor for IncognitoTabModel.
|
| */
|
| - public OffTheRecordTabModel(OffTheRecordTabModelDelegate tabModelCreator) {
|
| + public IncognitoTabModel(IncognitoTabModelDelegate tabModelCreator) {
|
| mDelegate = tabModelCreator;
|
| mDelegateModel = EmptyTabModel.getInstance();
|
| }
|
| @@ -60,7 +60,7 @@ public class OffTheRecordTabModel implements TabModel {
|
| }
|
|
|
| /**
|
| - * @return The TabModel that this {@link OffTheRecordTabModel} is delegating calls to.
|
| + * @return The TabModel that this {@link IncognitoTabModel} is delegating calls to.
|
| */
|
| protected TabModel getDelegateModel() {
|
| return mDelegateModel;
|
| @@ -81,7 +81,7 @@ public class OffTheRecordTabModel implements TabModel {
|
|
|
| // Only delete the incognito profile if there are no incognito tabs open in any tab
|
| // model selector as the profile is shared between them.
|
| - if (profile != null && !mDelegate.doOffTheRecordTabsExist()) {
|
| + if (profile != null && !mDelegate.doIncognitoTabsExist()) {
|
| IncognitoNotificationManager.dismissIncognitoNotification();
|
|
|
| profile.destroyWhenAppropriate();
|
|
|