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

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

Issue 1107663003: Properly attach InfoBarContainer when it is swapped to a new WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2357
Patch Set: 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 1553094429d84de04495808eef3831caef8bfa23..f430c19aa6d5cbb1cfbfb4b7bf54fa0f2b21a7ff 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