summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/chrome_url_request_context.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-11 17:38:56 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-11 17:38:56 +0000
commite6ba241000ba3d0ba7335cf6ffb0b1c9fcf9bdd1 (patch)
treea6bd0c41fa4e558a6b774367b870341d54800b65 /chrome/browser/net/chrome_url_request_context.cc
parent1c99edc8d48f94702ac085197779ea22b820549b (diff)
downloadchromium_src-e6ba241000ba3d0ba7335cf6ffb0b1c9fcf9bdd1.zip
chromium_src-e6ba241000ba3d0ba7335cf6ffb0b1c9fcf9bdd1.tar.gz
chromium_src-e6ba241000ba3d0ba7335cf6ffb0b1c9fcf9bdd1.tar.bz2
Forbid hybrid apps.
BUG=49234 Review URL: http://codereview.chromium.org/3123004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55750 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/chrome_url_request_context.cc')
-rw-r--r--chrome/browser/net/chrome_url_request_context.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc
index a67e506..6441dc9 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -790,6 +790,11 @@ FilePath ChromeURLRequestContext::GetPathForExtension(const std::string& id) {
return FilePath();
}
+bool ChromeURLRequestContext::ExtensionHasWebExtent(const std::string& id) {
+ ExtensionInfoMap::iterator iter = extension_info_.find(id);
+ return iter != extension_info_.end() && !iter->second->extent.is_empty();
+}
+
std::string ChromeURLRequestContext::GetDefaultLocaleForExtension(
const std::string& id) {
ExtensionInfoMap::iterator iter = extension_info_.find(id);