| Index: chrome/browser/android/tab_android.cc
|
| diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
|
| index 80157cef7d3c36fc67944ffc230da12c4b826458..15613c38ced8b0ca66740dd87be81985a7fecb23 100644
|
| --- a/chrome/browser/android/tab_android.cc
|
| +++ b/chrome/browser/android/tab_android.cc
|
| @@ -434,6 +434,19 @@ void TabAndroid::InitWebContents(
|
| content_layer_->InsertChild(content_view_core->GetLayer(), 0);
|
| }
|
|
|
| +void TabAndroid::UpdateDelegates(
|
| + JNIEnv* env,
|
| + const JavaParamRef<jobject>& obj,
|
| + const JavaParamRef<jobject>& jweb_contents_delegate,
|
| + const JavaParamRef<jobject>& jcontext_menu_populator) {
|
| + ContextMenuHelper::FromWebContents(web_contents())->SetPopulator(
|
| + jcontext_menu_populator);
|
| + web_contents_delegate_.reset(
|
| + new chrome::android::TabWebContentsDelegateAndroid(
|
| + env, jweb_contents_delegate));
|
| + web_contents()->SetDelegate(web_contents_delegate_.get());
|
| +}
|
| +
|
| void TabAndroid::DestroyWebContents(JNIEnv* env,
|
| const JavaParamRef<jobject>& obj,
|
| jboolean delete_native) {
|
|
|