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

Unified Diff: chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc

Issue 10537062: TabContentsWrapper -> TabContents, part 13. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiz Created 8 years, 6 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/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;
« no previous file with comments | « chrome/browser/ui/views/tabs/browser_tab_strip_controller.h ('k') | chrome/test/base/test_tab_strip_model_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698