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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1958823002: Fix implicit access to raw pointer of scoped_refptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Splitting out change to scoped_refptr to follow up patch. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 087cd75e2a4adf3622d2a000c478cc7cb4e8a640..eb6917b267e8b61703aaa1df22079a369a10e63a 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -4351,10 +4351,10 @@ bool RenderFrameImpl::IsHidden() {
}
bool RenderFrameImpl::IsLocalRoot() const {
- bool is_local_root = render_widget_ != nullptr;
+ bool is_local_root = static_cast<bool>(render_widget_);
DCHECK_EQ(is_local_root,
!(frame_->parent() && frame_->parent()->isWebLocalFrame()));
- return render_widget_ != nullptr;
+ return is_local_root;
}
// Tell the embedding application that the URL of the active page has changed.
« no previous file with comments | « content/renderer/media/webrtc/peer_connection_dependency_factory.cc ('k') | device/bluetooth/bluetooth_adapter_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698