Commit c6d437f4 authored by kundaji's avatar kundaji Committed by Commit bot

Set main frame id on DataUseRecorder created for render frame.

Without this id, there is no way to look this instance up in the
render frame map.

BUG=670257,670240,670438

Review-Url: https://codereview.chromium.org/2545963002
Cr-Commit-Position: refs/heads/master@{#435797}
parent 953dc658
......@@ -334,8 +334,10 @@ void ChromeDataUseAscriber::ReadyToCommitMainFrameNavigation(
// Add a new recorder to the render frame map to replace the deleted one.
DataUseRecorderEntry entry = data_use_recorders_.emplace(
data_use_recorders_.end());
render_frame_data_use_map_.insert(std::make_pair(
RenderFrameHostID(render_process_id, render_frame_id), entry));
std::pair<int, int> frame_key =
RenderFrameHostID(render_process_id, render_frame_id);
entry->set_main_frame_id(frame_key);
render_frame_data_use_map_.insert(std::make_pair(frame_key, entry));
}
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment