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

Unified Diff: extensions/common/extension_urls.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
« no previous file with comments | « extensions/common/extension_urls.h ('k') | extensions/common/matcher/DEPS » ('j') | 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/chrome/renderer/extensions/native_handler.cc b/extensions/common/extension_urls.cc
similarity index 50%
copy from chrome/renderer/extensions/native_handler.cc
copy to extensions/common/extension_urls.cc
index d6a9e57cd5518fd35bfbf2e3cc682ab2a3949611..f354b6bbe53a86dbd5b0c9d0db759372b2fe5b53 100644
--- a/chrome/renderer/extensions/native_handler.cc
+++ b/extensions/common/extension_urls.cc
@@ -2,16 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/renderer/extensions/native_handler.h"
+#include "extensions/common/extension_urls.h"
-namespace extensions {
-
-NativeHandler::NativeHandler() : is_valid_(true) {}
+#include "extensions/common/constants.h"
+#include "url/gurl.h"
-NativeHandler::~NativeHandler() {}
+namespace extensions {
-void NativeHandler::Invalidate() {
- is_valid_ = false;
+bool IsSourceFromAnExtension(const base::string16& source) {
+ return GURL(source).SchemeIs(kExtensionScheme);
}
} // namespace extensions
« no previous file with comments | « extensions/common/extension_urls.h ('k') | extensions/common/matcher/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698