summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/permissions/chrome_scheme_hosts.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/permissions/chrome_scheme_hosts.cc')
-rw-r--r--chrome/common/extensions/permissions/chrome_scheme_hosts.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/chrome/common/extensions/permissions/chrome_scheme_hosts.cc b/chrome/common/extensions/permissions/chrome_scheme_hosts.cc
index d32d055..6833597 100644
--- a/chrome/common/extensions/permissions/chrome_scheme_hosts.cc
+++ b/chrome/common/extensions/permissions/chrome_scheme_hosts.cc
@@ -8,8 +8,6 @@
#include "chrome/common/url_constants.h"
#include "extensions/common/url_pattern.h"
#include "extensions/common/url_pattern_set.h"
-#include "grit/generated_resources.h"
-#include "ui/base/l10n/l10n_util.h"
namespace {
const char kThumbsWhiteListedExtension[] = "khopmbdjffemhegeeobelklnbglcdgfh";
@@ -17,26 +15,6 @@ const char kThumbsWhiteListedExtension[] = "khopmbdjffemhegeeobelklnbglcdgfh";
namespace extensions {
-PermissionMessages GetChromeSchemePermissionWarnings(
- const URLPatternSet& hosts) {
- PermissionMessages messages;
- for (URLPatternSet::const_iterator i = hosts.begin();
- i != hosts.end(); ++i) {
- if (i->scheme() != chrome::kChromeUIScheme)
- continue;
- // chrome://favicon is the only URL for chrome:// scheme that we
- // want to support. We want to deprecate the "chrome" scheme.
- // We should not add any additional "host" here.
- if (GURL(chrome::kChromeUIFaviconURL).host() != i->host())
- continue;
- messages.push_back(PermissionMessage(
- PermissionMessage::kFavicon,
- l10n_util::GetStringUTF16(IDS_EXTENSION_PROMPT_WARNING_FAVICON)));
- break;
- }
- return messages;
-}
-
URLPatternSet GetPermittedChromeSchemeHosts(
const Extension* extension,
const APIPermissionSet& api_permissions) {