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

Unified Diff: chrome/renderer/content_settings_observer.cc

Issue 408053002: Remove unused allowWebComponents method from ContentSettingsObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/content_settings_observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/content_settings_observer.cc
diff --git a/chrome/renderer/content_settings_observer.cc b/chrome/renderer/content_settings_observer.cc
index 4333ef86ff7949faa10b5ba75d07ccd9f1a0f28c..2736ecd263b32b3c658690035ca9639d820387b5 100644
--- a/chrome/renderer/content_settings_observer.cc
+++ b/chrome/renderer/content_settings_observer.cc
@@ -430,24 +430,6 @@ bool ContentSettingsObserver::allowWriteToClipboard(bool default_value) {
return allowed;
}
-bool ContentSettingsObserver::allowWebComponents(bool default_value) {
- if (default_value)
- return true;
-
- WebFrame* frame = render_frame()->GetWebFrame();
- WebSecurityOrigin origin = frame->document().securityOrigin();
- if (EqualsASCII(origin.protocol(), content::kChromeUIScheme))
- return true;
-
- if (const extensions::Extension* extension = GetExtension(origin)) {
- if (extension->permissions_data()->HasAPIPermission(
- APIPermission::kExperimental))
- return true;
- }
-
- return false;
-}
-
bool ContentSettingsObserver::allowMutationEvents(bool default_value) {
WebFrame* frame = render_frame()->GetWebFrame();
WebSecurityOrigin origin = frame->document().securityOrigin();
« no previous file with comments | « chrome/renderer/content_settings_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698