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

Issue 1360123006: Introduce RenderFrame::IsMainFrame and clean up a few things. (Closed)

Created:
5 years, 2 months ago by dglazkov
Modified:
5 years, 2 months ago
Reviewers:
Charlie Reis, jam
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce RenderFrame::IsMainFrame and clean up a few things. To determine if RenderFrame represents a main frame (top of the frame tree), there's a typical check done today in code: render_frame->GetWebFrame()->parent() To make this check more easily understood, we add the titular function. In addition: * Reversed existing RenderFrameImpl::is_subframe to align with the newly added function. * Removed obsolete comment in ContentRendererClient. * Tweaked ChromeContentRendererClient to use the new function. BUG= R=creis@chromium.org Committed: https://crrev.com/2e140f5801f4d426b5e0339d612b997e0657bff0 Cr-Commit-Position: refs/heads/master@{#351077}

Patch Set 1 #

Patch Set 2 : Fixed content_browsertests failure. #

Total comments: 5

Patch Set 3 : Fixed use-after-free. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -40 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 chunk +8 lines, -14 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 chunk +1 line, -3 lines 0 comments Download
M content/public/renderer/render_frame.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 2 chunks +5 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 12 chunks +20 lines, -16 lines 0 comments Download
M content/renderer/render_frame_impl_browsertest.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360123006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360123006/1
5 years, 2 months ago (2015-09-25 21:56:22 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/86587) linux_chromium_rel_ng on ...
5 years, 2 months ago (2015-09-25 22:11:30 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360123006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360123006/20001
5 years, 2 months ago (2015-09-25 22:18:50 UTC) #6
dglazkov
PTAL.
5 years, 2 months ago (2015-09-25 22:49:01 UTC) #7
Charlie Reis
Much nicer, thanks! LGTM. https://codereview.chromium.org/1360123006/diff/20001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (left): https://codereview.chromium.org/1360123006/diff/20001/chrome/renderer/chrome_content_renderer_client.cc#oldcode570 chrome/renderer/chrome_content_renderer_client.cc:570: if (render_frame->GetWebFrame()->parent() == nullptr) { ...
5 years, 2 months ago (2015-09-26 00:08:04 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/57993)
5 years, 2 months ago (2015-09-26 00:12:51 UTC) #10
dglazkov
On 2015/09/26 at 00:12:51, commit-bot wrote: > Dry run: Try jobs failed on following builders: ...
5 years, 2 months ago (2015-09-26 00:24:34 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360123006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360123006/40001
5 years, 2 months ago (2015-09-28 04:02:32 UTC) #13
dglazkov
https://codereview.chromium.org/1360123006/diff/20001/content/public/renderer/render_frame.h File content/public/renderer/render_frame.h (right): https://codereview.chromium.org/1360123006/diff/20001/content/public/renderer/render_frame.h#newcode119 content/public/renderer/render_frame.h:119: // (That's the frame at the top of the ...
5 years, 2 months ago (2015-09-28 04:03:35 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-09-28 07:24:05 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360123006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360123006/40001
5 years, 2 months ago (2015-09-28 14:46:11 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/104257)
5 years, 2 months ago (2015-09-28 14:54:34 UTC) #21
jam
lgtm
5 years, 2 months ago (2015-09-28 16:02:13 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360123006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360123006/40001
5 years, 2 months ago (2015-09-28 16:04:00 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-09-28 16:10:18 UTC) #26
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 16:11:20 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2e140f5801f4d426b5e0339d612b997e0657bff0
Cr-Commit-Position: refs/heads/master@{#351077}

Powered by Google App Engine
This is Rietveld 408576698