| 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(),
|
|
|