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

Unified Diff: chrome/browser/android/tab_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/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index 73e61c0d53e428ac443049417305d74b6e7c7585..dc4c54fc4f677e471d629fd87023cd8e94844b9d 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -258,7 +258,8 @@ bool TabAndroid::ShouldWelcomePageLinkToTermsOfService() {
}
void TabAndroid::SwapTabContents(content::WebContents* old_contents,
- content::WebContents* new_contents) {
+ content::WebContents* new_contents,
+ bool did_finish_load) {
JNIEnv* env = base::android::AttachCurrentThread();
// We need to notify the native InfobarContainer so infobars can be swapped.
@@ -274,7 +275,8 @@ void TabAndroid::SwapTabContents(content::WebContents* old_contents,
Java_TabBase_swapWebContents(
env,
weak_java_tab_.get(env).obj(),
- reinterpret_cast<intptr_t>(new_contents));
+ reinterpret_cast<intptr_t>(new_contents),
+ did_finish_load);
}
void TabAndroid::Observe(int type,

Powered by Google App Engine
This is Rietveld 408576698