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

Unified Diff: chrome/browser/ui/browser.cc

Issue 2793443003: Removed NOTIFICATION_BROWSER_CLOSING notification (Closed)
Patch Set: Update CL basing on review comments (rebase) 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/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 7d0394fb25122655036b902a6fb8270ebfe87b07..ac29b0c21dcac42b18eb2e9ba3fab75c790b7ddd 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -751,11 +751,7 @@ void Browser::OnWindowClosing() {
if (tab_restore_service && is_type_tabbed() && tab_strip_model_->count())
tab_restore_service->BrowserClosing(live_tab_context());
- // TODO(sky): convert session/tab restore to use notification.
- content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_BROWSER_CLOSING,
- content::Source<Browser>(this),
- content::NotificationService::NoDetails());
+ BrowserList::NotifyBrowserCloseStarted(this);
if (!IsFastTabUnloadEnabled())
tab_strip_model_->CloseAllTabs();
« no previous file with comments | « chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc ('k') | chrome/browser/ui/browser_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698