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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/tabmodel/IncognitoTabModel.java

Issue 2288353002: Replace references to OffTheRecord from OffTheRecordTabModel to Incognito (Closed)
Patch Set: actually rename to right thing 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/tabmodel/OffTheRecordTabModel.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/tabmodel/OffTheRecordTabModel.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698