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

Unified Diff: chrome/browser/sessions/session_restore_android.cc

Issue 143463012: Pass rendering state on swapping in a prerendered page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dev
Patch Set: . Created 6 years, 11 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/sessions/session_restore_android.cc
diff --git a/chrome/browser/sessions/session_restore_android.cc b/chrome/browser/sessions/session_restore_android.cc
index 95e772c01e9caf66c3952d9b7cd49e37635cc79a..d5f8dec7cecb5ed2504155802399a4c2d27be7e7 100644
--- a/chrome/browser/sessions/session_restore_android.cc
+++ b/chrome/browser/sessions/session_restore_android.cc
@@ -42,7 +42,7 @@ content::WebContents* SessionRestore::RestoreForeignSessionTab(
TabAndroid* current_tab = TabAndroid::FromWebContents(web_contents);
DCHECK(current_tab);
if (disposition == CURRENT_TAB) {
- current_tab->SwapTabContents(web_contents, new_web_contents);
+ current_tab->SwapTabContents(web_contents, new_web_contents, false);
Ted C 2014/01/28 18:11:44 Previously, this wasn't resulting in a page load s
Shuhei Takahashi (google) 2014/01/29 05:58:10 Added another boolean flag didStartLoad to disting
delete web_contents;
} else {
DCHECK(disposition == NEW_FOREGROUND_TAB ||

Powered by Google App Engine
This is Rietveld 408576698