diff options
Diffstat (limited to 'chrome/browser/sync')
-rw-r--r-- | chrome/browser/sync/glue/session_model_associator.cc | 14 | ||||
-rw-r--r-- | chrome/browser/sync/glue/synced_tab_delegate.h | 4 | ||||
-rw-r--r-- | chrome/browser/sync/glue/synced_window_delegate.h | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/sync/glue/session_model_associator.cc b/chrome/browser/sync/glue/session_model_associator.cc index 8ba5e61..227b5ee 100644 --- a/chrome/browser/sync/glue/session_model_associator.cc +++ b/chrome/browser/sync/glue/session_model_associator.cc @@ -135,7 +135,7 @@ void SessionModelAssociator::ReassociateWindows(bool reload_tabs) { if (ShouldSyncWindow(*i) && (*i)->GetTabCount() && (*i)->HasWindow()) { sync_pb::SessionWindow window_s; - SessionID::id_type window_id = (*i)->GetSessionId().id(); + SessionID::id_type window_id = (*i)->GetSessionId(); VLOG(1) << "Reassociating window " << window_id << " with " << (*i)->GetTabCount() << " tabs."; window_s.set_window_id(window_id); @@ -155,7 +155,7 @@ void SessionModelAssociator::ReassociateWindows(bool reload_tabs) { DCHECK(tab); if (IsValidTab(*tab)) { found_tabs = true; - window_s.add_tab(tab->GetSessionId().id()); + window_s.add_tab(tab->GetSessionId()); if (reload_tabs) { ReassociateTab(*tab); } @@ -216,7 +216,7 @@ void SessionModelAssociator::ReassociateTab(const SyncedTabDelegate& tab) { return; int64 sync_id; - SessionID::id_type id = tab.GetSessionId().id(); + SessionID::id_type id = tab.GetSessionId(); if (tab.IsBeingDestroyed()) { // This tab is closing. TabLinksMap::iterator tab_iter = tab_map_.find(id); @@ -243,10 +243,10 @@ void SessionModelAssociator::ReassociateTab(const SyncedTabDelegate& tab) { void SessionModelAssociator::Associate(const SyncedTabDelegate* tab, int64 sync_id) { DCHECK(CalledOnValidThread()); - SessionID::id_type session_id = tab->GetSessionId().id(); + SessionID::id_type session_id = tab->GetSessionId(); const SyncedWindowDelegate* window = SyncedWindowDelegate::FindSyncedWindowDelegateWithId( - tab->GetWindowId().id()); + tab->GetWindowId()); if (!window) { // Can happen for weird things like developer console. tab_pool_.FreeTabNode(sync_id); return; @@ -276,9 +276,9 @@ bool SessionModelAssociator::WriteTabContentsToSyncModel( session_s.set_session_tag(GetCurrentMachineTag()); sync_pb::SessionTab* tab_s = session_s.mutable_tab(); - SessionID::id_type tab_id = tab.GetSessionId().id(); + SessionID::id_type tab_id = tab.GetSessionId(); tab_s->set_tab_id(tab_id); - tab_s->set_window_id(tab.GetWindowId().id()); + tab_s->set_window_id(tab.GetWindowId()); const int current_index = tab.GetCurrentEntryIndex(); const int min_index = std::max(0, current_index - max_sync_navigation_count); diff --git a/chrome/browser/sync/glue/synced_tab_delegate.h b/chrome/browser/sync/glue/synced_tab_delegate.h index 9c0263c..0b576f0 100644 --- a/chrome/browser/sync/glue/synced_tab_delegate.h +++ b/chrome/browser/sync/glue/synced_tab_delegate.h @@ -21,8 +21,8 @@ class SyncedTabDelegate { public: // Method from TabContentsWrapper. - virtual const SessionID& GetWindowId() const = 0; - virtual const SessionID& GetSessionId() const = 0; + virtual SessionID::id_type GetWindowId() const = 0; + virtual SessionID::id_type GetSessionId() const = 0; virtual bool IsBeingDestroyed() const = 0; virtual Profile* profile() const = 0; diff --git a/chrome/browser/sync/glue/synced_window_delegate.h b/chrome/browser/sync/glue/synced_window_delegate.h index e847784..2f0a694 100644 --- a/chrome/browser/sync/glue/synced_window_delegate.h +++ b/chrome/browser/sync/glue/synced_window_delegate.h @@ -35,7 +35,7 @@ class SyncedWindowDelegate { virtual bool HasWindow() const = 0; // see Browser::session_id - virtual const SessionID& GetSessionId() const = 0; + virtual SessionID::id_type GetSessionId() const = 0; // see Browser::tab_count virtual int GetTabCount() const = 0; |