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

Unified Diff: chrome/browser/ui/android/tab_model/tab_model.cc

Issue 2088443003: Shortcut ctrl+shift+T added on android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor some code to android_live_tab_context from recently_closed_tabs_bridge Created 4 years, 5 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/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)

Powered by Google App Engine
This is Rietveld 408576698