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

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

Issue 11340019: Place <webview> tag behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed WebViewTest.* Created 8 years, 2 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/chrome_content_renderer_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/dispatcher.cc
diff --git a/chrome/renderer/extensions/dispatcher.cc b/chrome/renderer/extensions/dispatcher.cc
index eeb26f1bfa607de3166f171b04d09c49d26e3d46..bf2ec590ef738ea142f9ca74b630a3f30b0eb1e7 100644
--- a/chrome/renderer/extensions/dispatcher.cc
+++ b/chrome/renderer/extensions/dispatcher.cc
@@ -803,6 +803,9 @@ void Dispatcher::DidCreateScriptContext(
module_system->Require("platformApp");
if (context_type == Feature::BLESSED_EXTENSION_CONTEXT &&
+ (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableWebView) ||
+ (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableBrowserPluginForAllViewTypes))) &&
extension->HasAPIPermission(APIPermission::kWebView)) {
module_system->Require("webview");
}
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698