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

Unified Diff: trunk/src/extensions/renderer/resources/uncaught_exception_handler.js

Issue 309413002: Revert 274558 "Move some extensions renderer resources to extens..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/extensions/renderer/resources/uncaught_exception_handler.js
===================================================================
--- trunk/src/extensions/renderer/resources/uncaught_exception_handler.js (revision 274563)
+++ trunk/src/extensions/renderer/resources/uncaught_exception_handler.js (working copy)
@@ -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;
-};

Powered by Google App Engine
This is Rietveld 408576698