summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authorjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 18:03:05 +0000
committerjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 18:03:05 +0000
commitf2cc738f20fbfadfeccca94eb84c0baac63da0bb (patch)
treefc6463e24e41574e1b335f0944953ef3efc33d6b /chrome/browser/browser.cc
parent1837c260a77fe90648bfd9f15d7173159e118a19 (diff)
downloadchromium_src-f2cc738f20fbfadfeccca94eb84c0baac63da0bb.zip
chromium_src-f2cc738f20fbfadfeccca94eb84c0baac63da0bb.tar.gz
chromium_src-f2cc738f20fbfadfeccca94eb84c0baac63da0bb.tar.bz2
Indicate if window is closing in tabs.onRemoved callback
This adds a removeInfo object to the chrome.tabs.onRemoved callback that indicates if the tab's window is also closing. BUG=56592 TEST=ExtensionApiTest Review URL: http://codereview.chromium.org/3692004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62755 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index d4b5446..0c7bacd 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -2620,7 +2620,9 @@ void Browser::TabInsertedAt(TabContents* contents,
Source<TabContents>(contents));
}
-void Browser::TabClosingAt(TabContents* contents, int index) {
+void Browser::TabClosingAt(TabStripModel* tab_strip_model,
+ TabContents* contents,
+ int index) {
NotificationService::current()->Notify(
NotificationType::TAB_CLOSING,
Source<NavigationController>(&contents->controller()),