Index: chrome/renderer/extensions/chrome_extensions_renderer_client.cc |
diff --git a/chrome/renderer/extensions/chrome_extensions_renderer_client.cc b/chrome/renderer/extensions/chrome_extensions_renderer_client.cc |
index b1127e949e6dfdc908f093ff19dcd69512884b8a..3b1256b16ff7952ac091bb4122f246b90d4cb5c7 100644 |
--- a/chrome/renderer/extensions/chrome_extensions_renderer_client.cc |
+++ b/chrome/renderer/extensions/chrome_extensions_renderer_client.cc |
@@ -22,6 +22,7 @@ |
#include "chrome/renderer/media/cast_ipc_dispatcher.h" |
#include "content/public/common/content_constants.h" |
#include "content/public/common/content_switches.h" |
+#include "content/public/renderer/render_frame.h" |
#include "content/public/renderer/render_thread.h" |
#include "extensions/common/constants.h" |
#include "extensions/common/extension.h" |
@@ -298,6 +299,15 @@ ChromeExtensionsRendererClient::CreateBrowserPluginDelegate( |
original_url); |
} |
+// static |
+blink::WebFrame* ChromeExtensionsRendererClient::FindFrame( |
+ blink::WebLocalFrame* relative_to_frame, |
+ const std::string& name) { |
+ content::RenderFrame* result = extensions::ExtensionFrameHelper::FindFrame( |
+ content::RenderFrame::FromWebFrame(relative_to_frame), name); |
+ return result ? result->GetWebFrame() : nullptr; |
+} |
+ |
void ChromeExtensionsRendererClient::RunScriptsAtDocumentStart( |
content::RenderFrame* render_frame) { |
extension_dispatcher_->RunScriptsAtDocumentStart(render_frame); |