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

Side by Side 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, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Handles uncaught exceptions thrown by extensions. By default this is to
6 // log an error message, but tests may override this behaviour.
7
8 var handler = function(message, e) {
9 console.error(message);
10 };
11
12 // |message| The message associated with the error.
13 // |e| The object that was thrown.
14 exports.handle = function(message, e) {
15 handler(message, e);
16 };
17
18 // |newHandler| A function which matches |exports.handle|.
19 exports.setHandler = function(newHandler) {
20 handler = newHandler;
21 };
OLDNEW
« 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