Index: third_party/WebKit/Source/core/frame/Deprecation.cpp |
diff --git a/third_party/WebKit/Source/core/frame/Deprecation.cpp b/third_party/WebKit/Source/core/frame/Deprecation.cpp |
index a2fdb48282e6db259159bf6b3fdbb172f765fa01..725b5afe7ad21b4590ef4f8311a7655751744fff 100644 |
--- a/third_party/WebKit/Source/core/frame/Deprecation.cpp |
+++ b/third_party/WebKit/Source/core/frame/Deprecation.cpp |
@@ -161,9 +161,9 @@ void Deprecation::CountDeprecationCrossOriginIframe( |
// Check to see if the frame can script into the top level document. |
SecurityOrigin* security_origin = |
frame->GetSecurityContext()->GetSecurityOrigin(); |
- Frame* top = frame->Tree().Top(); |
- if (top && !security_origin->CanAccess( |
- top->GetSecurityContext()->GetSecurityOrigin())) |
+ Frame& top = frame->Tree().Top(); |
+ if (!security_origin->CanAccess( |
+ top.GetSecurityContext()->GetSecurityOrigin())) |
CountDeprecation(frame, feature); |
} |