diff options
author | rdevlin.cronin@chromium.org <rdevlin.cronin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-06 08:41:07 +0000 |
---|---|---|
committer | rdevlin.cronin@chromium.org <rdevlin.cronin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-06 08:41:07 +0000 |
commit | a0ed268cd52dfe77b86f967f9c98e30f73414140 (patch) | |
tree | 9c1b5cebffb3f283669c690116a54f589c7d09d6 /extensions/common/extension_urls.cc | |
parent | 28c3d0a9c7f17208100e97cfb428538d1214e087 (diff) | |
download | chromium_src-a0ed268cd52dfe77b86f967f9c98e30f73414140.zip chromium_src-a0ed268cd52dfe77b86f967f9c98e30f73414140.tar.gz chromium_src-a0ed268cd52dfe77b86f967f9c98e30f73414140.tar.bz2 |
Expand RuntimeErrors for ErrorConsole
Include two of our internal scripts (event_bindings and schemaUtil) as sources
for runtime errors. Add tests for same.
BUG=21734
Review URL: https://chromiumcodereview.appspot.com/23923003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221652 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/extension_urls.cc')
-rw-r--r-- | extensions/common/extension_urls.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/extensions/common/extension_urls.cc b/extensions/common/extension_urls.cc index f354b6b..38a1fff 100644 --- a/extensions/common/extension_urls.cc +++ b/extensions/common/extension_urls.cc @@ -4,13 +4,20 @@ #include "extensions/common/extension_urls.h" +#include "base/strings/utf_string_conversions.h" #include "extensions/common/constants.h" #include "url/gurl.h" namespace extensions { +const char kEventBindings[] = "event_bindings"; + +const char kSchemaUtils[] = "schemaUtils"; + bool IsSourceFromAnExtension(const base::string16& source) { - return GURL(source).SchemeIs(kExtensionScheme); + return GURL(source).SchemeIs(kExtensionScheme) || + source == base::UTF8ToUTF16(kEventBindings) || + source == base::UTF8ToUTF16(kSchemaUtils); } } // namespace extensions |