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

Unified Diff: chrome/browser/sync/glue/session_change_processor.cc

Issue 10917198: Switch NOTIFICATION_TAB_PARENTED to use WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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
« no previous file with comments | « chrome/browser/sessions/session_tab_helper.cc ('k') | chrome/common/chrome_notification_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/session_change_processor.cc
diff --git a/chrome/browser/sync/glue/session_change_processor.cc b/chrome/browser/sync/glue/session_change_processor.cc
index 2b98f6806c0322a85887a61ff426bac9d9e7df3a..937cc0e9912a867dd1bb5639a104cd5846f9bc0f 100644
--- a/chrome/browser/sync/glue/session_change_processor.cc
+++ b/chrome/browser/sync/glue/session_change_processor.cc
@@ -112,8 +112,9 @@ void SessionChangeProcessor::Observe(
}
case chrome::NOTIFICATION_TAB_PARENTED: {
- SyncedTabDelegate* tab =
- content::Source<TabContents>(source).ptr()->synced_tab_delegate();
+ TabContents* tab_contents = TabContents::FromWebContents(
+ content::Source<WebContents>(source).ptr());
+ SyncedTabDelegate* tab = tab_contents->synced_tab_delegate();
if (!tab || tab->profile() != profile_) {
return;
}
« no previous file with comments | « chrome/browser/sessions/session_tab_helper.cc ('k') | chrome/common/chrome_notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698