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

Unified Diff: chrome/renderer/extensions/chrome_extensions_renderer_client.cc

Issue 2873503002: NOT YET READY: Improve granularity of window namespaces in Blink.
Patch Set: Rebasing... Created 3 years, 6 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
« no previous file with comments | « chrome/renderer/extensions/chrome_extensions_renderer_client.h ('k') | content/browser/browsing_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/renderer/extensions/chrome_extensions_renderer_client.h ('k') | content/browser/browsing_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698