Index: chrome/browser/ui/android/tab_model/tab_model.cc |
diff --git a/chrome/browser/ui/android/tab_model/tab_model.cc b/chrome/browser/ui/android/tab_model/tab_model.cc |
index f2d751060af07add241c94bd48de7cf0dd713d2b..52a8d2bf4f21189edfd16a9d5dfa1a8eba1e93b9 100644 |
--- a/chrome/browser/ui/android/tab_model/tab_model.cc |
+++ b/chrome/browser/ui/android/tab_model/tab_model.cc |
@@ -22,6 +22,7 @@ static int INVALID_TAB_INDEX = -1; |
TabModel::TabModel(Profile* profile) |
: profile_(profile), |
+ live_tab_context_(new AndroidLiveTabContext(this)), |
synced_window_delegate_( |
new browser_sync::SyncedWindowDelegateAndroid(this)) { |
@@ -64,6 +65,14 @@ SessionID::id_type TabModel::GetSessionId() const { |
return session_id_.id(); |
} |
+const SessionID& TabModel::SessionId() const { |
+ return session_id_; |
+} |
+ |
+sessions::LiveTabContext* TabModel::GetLiveTabContext() const{ |
+ return live_tab_context_.get(); |
+} |
+ |
content::WebContents* TabModel::GetActiveWebContents() const { |
int active_index = GetActiveIndex(); |
if (active_index == INVALID_TAB_INDEX) |