| Index: chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc
|
| diff --git a/chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc b/chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc
|
| index c9ee3186d148b4f62c207304322c46f2c20d3ed0..cb9aebd720625172e7977672e0034bda24d1a769 100644
|
| --- a/chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc
|
| +++ b/chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc
|
| @@ -164,7 +164,7 @@ void SyncPromoHandler::Observe(int type,
|
| case chrome::NOTIFICATION_BROWSER_CLOSING: {
|
| // Make sure we're in the tab strip of the closing window.
|
| Browser* browser = content::Source<Browser>(source).ptr();
|
| - if (browser->tab_strip_model()->GetWrapperIndex(
|
| + if (browser->tab_strip_model()->GetIndexOfWebContents(
|
| web_ui()->GetWebContents()) != TabStripModel::kNoTab) {
|
| RecordUserFlowAction(SYNC_PROMO_CLOSED_WINDOW);
|
| window_already_closed_ = true;
|
|
|