Commit 92b24085 authored by Theresa's avatar Theresa Committed by Commit Bot

Remove left over Chrome Home code from IncognitoNotificationService

BUG=837718

Change-Id: I8343ced1fb8d288f842605c292714c82bea99e6a
Reviewed-on: https://chromium-review.googlesource.com/1035453Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: Theresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#554854}
parent bf802aa6
...@@ -31,7 +31,6 @@ import org.chromium.chrome.browser.document.DocumentUtils; ...@@ -31,7 +31,6 @@ import org.chromium.chrome.browser.document.DocumentUtils;
import org.chromium.chrome.browser.profiles.Profile; import org.chromium.chrome.browser.profiles.Profile;
import org.chromium.chrome.browser.tabmodel.TabWindowManager; import org.chromium.chrome.browser.tabmodel.TabWindowManager;
import org.chromium.chrome.browser.tabmodel.TabbedModeTabPersistencePolicy; import org.chromium.chrome.browser.tabmodel.TabbedModeTabPersistencePolicy;
import org.chromium.chrome.browser.widget.bottomsheet.BottomSheet;
import org.chromium.content.browser.BrowserStartupController; import org.chromium.content.browser.BrowserStartupController;
import java.io.File; import java.io.File;
...@@ -194,17 +193,6 @@ public class IncognitoNotificationService extends IntentService { ...@@ -194,17 +193,6 @@ public class IncognitoNotificationService extends IntentService {
ChromeTabbedActivity tabbedActivity = (ChromeTabbedActivity) activity; ChromeTabbedActivity tabbedActivity = (ChromeTabbedActivity) activity;
if (tabbedActivity.isActivityDestroyed()) continue; if (tabbedActivity.isActivityDestroyed()) continue;
// Close the Chrome Home bottom sheet if it is open over an incognito tab.
if (tabbedActivity.getBottomSheet() != null
&& tabbedActivity.getBottomSheet().isSheetOpen()
&& tabbedActivity.getTabModelSelector().isIncognitoSelected()) {
// Skip animating to ensure to sheet is closed immediately. If the animation
// is run, the incognito profile will be in use until the end of the
// animation.
tabbedActivity.getBottomSheet().setSheetState(
BottomSheet.SHEET_STATE_PEEK, false);
}
tabbedActivity.getTabModelSelector().getModel(true).closeAllTabs( tabbedActivity.getTabModelSelector().getModel(true).closeAllTabs(
false, false); false, false);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment