| Index: chrome/android/java/src/org/chromium/chrome/browser/tabmodel/OffTheRecordTabModel.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/OffTheRecordTabModel.java
|
| index a461cb233d1f8d83b8425b515accb47580d88b67..989c138eb82b6eba8f0612d86486adcb381fb07a 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/OffTheRecordTabModel.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/OffTheRecordTabModel.java
|
| @@ -6,6 +6,7 @@ package org.chromium.chrome.browser.tabmodel;
|
|
|
| import org.chromium.base.ObserverList;
|
| import org.chromium.base.ThreadUtils;
|
| +import org.chromium.chrome.browser.incognito.IncognitoNotificationManager;
|
| import org.chromium.chrome.browser.profiles.Profile;
|
| import org.chromium.chrome.browser.tab.Tab;
|
|
|
| @@ -50,6 +51,8 @@ public class OffTheRecordTabModel implements TabModel {
|
| protected void ensureTabModelImpl() {
|
| ThreadUtils.assertOnUiThread();
|
| if (!(mDelegateModel instanceof EmptyTabModel)) return;
|
| +
|
| + IncognitoNotificationManager.showIncognitoNotification();
|
| mDelegateModel = mDelegate.createTabModel();
|
| for (TabModelObserver observer : mObservers) {
|
| mDelegateModel.addObserver(observer);
|
| @@ -79,6 +82,8 @@ 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()) {
|
| + IncognitoNotificationManager.dismissIncognitoNotification();
|
| +
|
| profile.destroyWhenAppropriate();
|
| }
|
|
|
|
|