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

Unified Diff: chrome/renderer/resources/extensions/uncaught_exception_handler.js

Issue 307833002: Move some extensions renderer resources to extensions_renderer_resources.grd. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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
Index: chrome/renderer/resources/extensions/uncaught_exception_handler.js
diff --git a/chrome/renderer/resources/extensions/uncaught_exception_handler.js b/chrome/renderer/resources/extensions/uncaught_exception_handler.js
deleted file mode 100644
index a3709b58f3c0f6c0e9de5d31e88e2381c5e167c5..0000000000000000000000000000000000000000
--- a/chrome/renderer/resources/extensions/uncaught_exception_handler.js
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Handles uncaught exceptions thrown by extensions. By default this is to
-// log an error message, but tests may override this behaviour.
-
-var handler = function(message, e) {
- console.error(message);
-};
-
-// |message| The message associated with the error.
-// |e| The object that was thrown.
-exports.handle = function(message, e) {
- handler(message, e);
-};
-
-// |newHandler| A function which matches |exports.handle|.
-exports.setHandler = function(newHandler) {
- handler = newHandler;
-};
« no previous file with comments | « chrome/renderer/resources/extensions/test_custom_bindings.js ('k') | chrome/renderer/resources/extensions/unload_event.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698