Index: chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc |
diff --git a/chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc b/chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc |
index ab71b2e107fed4a005a94c0efa1fa4f4b457b6dc..327df0e082eab796e6885c75b0e42ef6f4ba4968 100644 |
--- a/chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc |
+++ b/chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc |
@@ -25,7 +25,7 @@ DEFINE_WEB_CONTENTS_USER_DATA_KEY(TabContentsSyncedTabDelegate); |
TabContentsSyncedTabDelegate::TabContentsSyncedTabDelegate( |
content::WebContents* web_contents) |
- : web_contents_(web_contents) {} |
+ : web_contents_(web_contents), sync_session_id_(0) {} |
TabContentsSyncedTabDelegate::~TabContentsSyncedTabDelegate() {} |
@@ -105,3 +105,11 @@ bool TabContentsSyncedTabDelegate::IsPinned() const { |
} |
bool TabContentsSyncedTabDelegate::HasWebContents() const { return true; } |
+ |
+int64 TabContentsSyncedTabDelegate::GetSyncId() const { |
+ return sync_session_id_; |
+} |
+ |
+void TabContentsSyncedTabDelegate::SetSyncId(int64 sync_id) { |
+ sync_session_id_ = sync_id; |
+} |