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

Unified Diff: chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc

Issue 16421003: [Sync] Add logic to reassociate tab nodes after restart. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/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..8376a3a611f57e5683e4cde0f45ab1d7049bda6c 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_(-1) {}
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;
+}

Powered by Google App Engine
This is Rietveld 408576698