Chromium Code Reviews| Index: android_webview/native/aw_contents.cc |
| diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc |
| index 523c63772923cf611ed6c97dc7e318ca50a76687..58f4a7a84e0e3224e8db9b1678d92a98d0f065ec 100644 |
| --- a/android_webview/native/aw_contents.cc |
| +++ b/android_webview/native/aw_contents.cc |
| @@ -137,13 +137,6 @@ class AwContentsUserData : public base::SupportsUserData::Data { |
| base::subtle::Atomic32 g_instance_count = 0; |
| -void OnIoThreadClientReady(content::RenderFrameHost* rfh) { |
| - int render_process_id = rfh->GetProcess()->GetID(); |
| - int render_frame_id = rfh->GetRoutingID(); |
| - AwResourceDispatcherHostDelegate::OnIoThreadClientReady( |
| - render_process_id, render_frame_id); |
| -} |
| - |
| } // namespace |
| // static |
| @@ -245,7 +238,13 @@ void AwContents::SetJavaPeers( |
| env, intercept_navigation_delegate))); |
| // Finally, having setup the associations, release any deferred requests |
| - web_contents_->ForEachFrame(base::Bind(&OnIoThreadClientReady)); |
| + for (content::RenderFrameHost* rfh : web_contents_->GetAllFrames()) { |
| + int render_process_id = rfh->GetProcess()->GetID(); |
| + int render_frame_id = rfh->GetRoutingID(); |
| + AwResourceDispatcherHostDelegate::OnIoThreadClientReady(render_process_id, |
| + render_frame_id); |
| + } |
| +} |
|
ncarter (slow)
2016/02/03 18:03:51
You've got an extra bracket here.
dcheng
2016/02/03 23:00:19
Oops, thanks.
|
| } |
| void AwContents::SetSaveFormData(bool enabled) { |