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

Unified Diff: extensions/common/constants.cc

Issue 23007021: Report Javascript Runtime Errors to the Error Console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dc_ec_feldman
Patch Set: Created 7 years, 4 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
« extensions/common/constants.h ('K') | « extensions/common/constants.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/constants.cc
diff --git a/extensions/common/constants.cc b/extensions/common/constants.cc
index b73906121fc110e5cd1a2e0ce932aecacb2e7cc4..04671894143707b97390ef53f53797ec19d75555 100644
--- a/extensions/common/constants.cc
+++ b/extensions/common/constants.cc
@@ -5,6 +5,7 @@
#include "extensions/common/constants.h"
#include "base/files/file_path.h"
+#include "url/gurl.h"
namespace extensions {
@@ -37,4 +38,8 @@ const base::FilePath::CharType kExtensionFileExtension[] =
const base::FilePath::CharType kExtensionKeyFileExtension[] =
FILE_PATH_LITERAL(".pem");
+bool IsSourceFromAnExtension(const base::string16& source) {
+ return GURL(source).SchemeIs(kExtensionScheme);
+}
+
} // namespace extensions
« extensions/common/constants.h ('K') | « extensions/common/constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698