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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 831523005: Remove most native WebContents references from Java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 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 840b3f89b93bd878dc1502ee71042f840562fd69..ecd82a6ad2eedba0754a1f29626a6f851566862b 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -290,7 +290,7 @@ void TabAndroid::SwapTabContents(content::WebContents* old_contents,
Java_Tab_swapWebContents(
env,
weak_java_tab_.get(env).obj(),
- reinterpret_cast<intptr_t>(new_contents),
+ new_contents->GetJavaWebContents().obj(),
did_start_load,
did_finish_load);
}
« no previous file with comments | « chrome/browser/android/content_view_util.cc ('k') | chrome/browser/prerender/external_prerender_handler_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698