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

Unified Diff: extensions/common/extension_urls.cc

Issue 23923003: Expand RuntimeErrors for ErrorConsole (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Copyright fix Created 7 years, 3 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 | « extensions/common/extension_urls.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_urls.cc
diff --git a/extensions/common/extension_urls.cc b/extensions/common/extension_urls.cc
index f354b6bbe53a86dbd5b0c9d0db759372b2fe5b53..38a1fff0ea656a8c5d33245618e7d3d0c4725530 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
« no previous file with comments | « extensions/common/extension_urls.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698