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

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

Issue 1049383008: Properly attach InfoBarContainer when it is swapped to a new WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 5 years, 8 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 afbe27fe9fe287b478823afaf39376f64d86c7e8..7ea7eb6dc4dc62ec567ef3a8488282443d143c9c 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -294,17 +294,6 @@ void TabAndroid::SwapTabContents(content::WebContents* old_contents,
bool did_start_load,
bool did_finish_load) {
JNIEnv* env = base::android::AttachCurrentThread();
-
- // We need to notify the native InfobarContainer so infobars can be swapped.
- InfoBarContainerAndroid* infobar_container =
- reinterpret_cast<InfoBarContainerAndroid*>(
- Java_Tab_getNativeInfoBarContainer(
- env,
- weak_java_tab_.get(env).obj()));
- InfoBarService* new_infobar_service =
- new_contents ? InfoBarService::FromWebContents(new_contents) : NULL;
- infobar_container->ChangeInfoBarManager(new_infobar_service);
-
Java_Tab_swapWebContents(
env,
weak_java_tab_.get(env).obj(),

Powered by Google App Engine
This is Rietveld 408576698