| Index: chrome/browser/android/tab_android.cc
|
| diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
|
| index efd00c4aaab7e2cf4591d60c291f952945b7cf13..25035d694f921d0e285d0e3d881e149f37c5b22f 100644
|
| --- a/chrome/browser/android/tab_android.cc
|
| +++ b/chrome/browser/android/tab_android.cc
|
| @@ -708,6 +708,15 @@ void TabAndroid::CreateHistoricalTabFromContents(WebContents* web_contents) {
|
| // TODO(jcivelli): is the index important?
|
| service->CreateHistoricalTab(
|
| sessions::ContentLiveTab::GetForWebContents(web_contents), -1);
|
| +
|
| + // write android tab window id into TabRestoreService::Tab.browser_id.
|
| + if (!service->entries().empty()) {
|
| + TabAndroid* tab_android = TabAndroid::FromWebContents(web_contents);
|
| + using RestoreTab = sessions::TabRestoreService::Tab;
|
| + RestoreTab* restore_tab =
|
| + static_cast<RestoreTab*>(service->GetMostRecentEntry());
|
| + restore_tab->browser_id = tab_android->window_id().id();
|
| + }
|
| }
|
|
|
| void TabAndroid::CreateHistoricalTab(JNIEnv* env,
|
|
|