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

Unified Diff: mojo/services/html_viewer/html_document.cc

Issue 821023005: Update createChildFrame in mojo's html_viewer to take sandbox flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include WebSandboxFlags.h Created 5 years, 11 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 | « mojo/services/html_viewer/html_document.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/html_viewer/html_document.cc
diff --git a/mojo/services/html_viewer/html_document.cc b/mojo/services/html_viewer/html_document.cc
index 7688442f7e912faeb438ccaabb6de8dc98fd2b15..34690846a94f409c65491502987a30756e5b6cd2 100644
--- a/mojo/services/html_viewer/html_document.cc
+++ b/mojo/services/html_viewer/html_document.cc
@@ -211,9 +211,17 @@ blink::WebMediaPlayer* HTMLDocument::createMediaPlayer(
initial_cdm, shell_);
}
+// TODO(alexmos): Remove once Blink is updated to pass sandboxFlags.
blink::WebFrame* HTMLDocument::createChildFrame(
blink::WebLocalFrame* parent,
const blink::WebString& frameName) {
+ return createChildFrame(parent, frameName, blink::WebSandboxFlags::None);
+}
+
+blink::WebFrame* HTMLDocument::createChildFrame(
+ blink::WebLocalFrame* parent,
+ const blink::WebString& frameName,
+ blink::WebSandboxFlags sandboxFlags) {
blink::WebLocalFrame* web_frame = blink::WebLocalFrame::create(this);
parent->appendChild(web_frame);
return web_frame;
« no previous file with comments | « mojo/services/html_viewer/html_document.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698