Index: chrome/renderer/external_extension.cc |
diff --git a/chrome/renderer/external_extension.cc b/chrome/renderer/external_extension.cc |
index 378e78e9f58ca2c531a5b3439e62c0ef70342f9a..100f311fd08978e8bfaf3bc85915653cb46ef06c 100644 |
--- a/chrome/renderer/external_extension.cc |
+++ b/chrome/renderer/external_extension.cc |
@@ -35,7 +35,7 @@ class ExternalExtensionWrapper : public v8::Extension { |
if (!args.Length()) |
return v8::Undefined(); |
- WebFrame* webframe = WebFrame::RetrieveActiveFrame(); |
+ WebFrame* webframe = WebFrame::RetrieveFrameForEnteredContext(); |
DCHECK(webframe) << "There should be an active frame since we just got " |
"a native function called."; |
if (!webframe) return v8::Undefined(); |