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

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

Issue 2899053004: [Home] Ensure incognito tab model is created when NTP opened (Closed)
Patch Set: Close bottom sheet after loading URL/opening new tab Created 3 years, 7 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
Index: chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModel.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModel.java b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModel.java
index 48d445bdebea2afbaff64017fc1a2bc3c041f57d..8b883d610a9e658d6128ae9063ed693263446bea 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModel.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModel.java
@@ -210,6 +210,19 @@ public interface TabModel extends TabList {
void removeTab(Tab tab);
/**
+ * Indicates that a new tab may be added to the model soon. Allows the model to initialize
+ * anything necessary for the creation of a tab or perform cleanup once a new tab is no longer
+ * pending addition.
+ * @param isPendingTabAdd Whether a new tab is pending addition to this model.
+ */
+ void setIsPendingTabAdd(boolean isPendingTabAdd);
+
+ /**
+ * Whether a new tab is pending addition to this model.
+ */
+ boolean isPendingTabAdd();
+
+ /**
* Subscribes a {@link TabModelObserver} to be notified about changes to this model.
* @param observer The observer to be subscribed.
*/

Powered by Google App Engine
This is Rietveld 408576698