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