Commit 524cbc9a authored by Evan Stade's avatar Evan Stade Committed by Commit Bot

Delete NOTIFICATION_TAB_PARENTED and NOTIFICATION_TAB_CLOSING.

Recent changes have removed their usage throughout the codebase.

Bug: 268984
Change-Id: Ie45823b4bb5276bf497ff68124163b81c938c09f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1756388Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Evan Stade <estade@chromium.org>
Cr-Commit-Position: refs/heads/master@{#687403}
parent d4fae321
...@@ -88,21 +88,6 @@ enum NotificationType { ...@@ -88,21 +88,6 @@ enum NotificationType {
// handler. Use APP_TERMINATING for such needs. // handler. Use APP_TERMINATING for such needs.
NOTIFICATION_CLOSE_ALL_BROWSERS_REQUEST, NOTIFICATION_CLOSE_ALL_BROWSERS_REQUEST,
// Tabs --------------------------------------------------------------------
// This notification is sent after a tab has been appended to the tab_strip.
// The source is a Source<WebContents> of the tab being added. There
// are no details.
NOTIFICATION_TAB_PARENTED,
// This message is sent before a tab has been closed. The source is a
// Source<NavigationController> with a pointer to the controller for the
// closed tab. No details are expected.
//
// See also content::NOTIFICATION_WEB_CONTENTS_DESTROYED, which is sent when
// the WebContents containing the NavigationController is destroyed.
NOTIFICATION_TAB_CLOSING,
// Authentication ---------------------------------------------------------- // Authentication ----------------------------------------------------------
// This is sent when a login prompt is shown. The source is the // This is sent when a login prompt is shown. The source is the
......
...@@ -2069,11 +2069,6 @@ void Browser::OnTabInsertedAt(WebContents* contents, int index) { ...@@ -2069,11 +2069,6 @@ void Browser::OnTabInsertedAt(WebContents* contents, int index) {
SessionTabHelper::FromWebContents(contents)->SetWindowID(session_id()); SessionTabHelper::FromWebContents(contents)->SetWindowID(session_id());
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_TAB_PARENTED,
content::Source<content::WebContents>(contents),
content::NotificationService::NoDetails());
SyncHistoryWithTabs(index); SyncHistoryWithTabs(index);
// Make sure the loading state is updated correctly, otherwise the throbber // Make sure the loading state is updated correctly, otherwise the throbber
...@@ -2112,10 +2107,7 @@ void Browser::OnTabClosing(WebContents* contents) { ...@@ -2112,10 +2107,7 @@ void Browser::OnTabClosing(WebContents* contents) {
SessionServiceFactory::GetForProfile(profile_); SessionServiceFactory::GetForProfile(profile_);
if (session_service) if (session_service)
session_service->TabClosing(contents); session_service->TabClosing(contents);
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_TAB_CLOSING,
content::Source<NavigationController>(&contents->GetController()),
content::NotificationService::NoDetails());
SearchTabHelper::FromWebContents(contents)->OnTabClosing(); SearchTabHelper::FromWebContents(contents)->OnTabClosing();
} }
......
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