Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Issue 2627393002: Replace std::map with std::pair for (origin, engagement) tuples in RenderFrameImpl. (Closed)

Created:
3 years, 11 months ago by dominickn
Modified:
3 years, 11 months ago
Reviewers:
nasko
CC:
chromium-reviews, nasko+codewatch_chromium.org, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, creis+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace std::map with std::pair for (origin, engagement) tuples in RenderFrameImpl. The engagement level should correspond to precisely one origin within a frame. This CL replaces its map temporary storage variable with a pair. BUG=655415 Review-Url: https://codereview.chromium.org/2627393002 Cr-Commit-Position: refs/heads/master@{#444570} Committed: https://chromium.googlesource.com/chromium/src/+/89fba275a0be24ab7a318f92f179f7c9495ccae0

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -10 lines) Patch
M content/renderer/render_frame_impl.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 19 (14 generated)
dominickn
PTAL, thanks! This seems to work just fine.
3 years, 11 months ago (2017-01-13 02:21:50 UTC) #4
nasko
I think this looks fine too. LGTM with one question. https://codereview.chromium.org/2627393002/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2627393002/diff/1/content/renderer/render_frame_impl.cc#newcode4798 ...
3 years, 11 months ago (2017-01-18 22:33:37 UTC) #7
dominickn
Thanks! https://codereview.chromium.org/2627393002/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2627393002/diff/1/content/renderer/render_frame_impl.cc#newcode4798 content/renderer/render_frame_impl.cc:4798: engagement_level_.first = url::Origin(); On 2017/01/18 22:33:37, nasko wrote: ...
3 years, 11 months ago (2017-01-19 00:34:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2627393002/20001
3 years, 11 months ago (2017-01-19 00:35:47 UTC) #15
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 00:45:09 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/89fba275a0be24ab7a318f92f179...

Powered by Google App Engine
This is Rietveld 408576698