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

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

Issue 1417513003: [Extensions] Don't allow built-in extensions code to be overridden (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Jochen's Created 5 years, 2 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/renderer/resources/test_custom_bindings.js ('k') | extensions/renderer/resources/utils.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/resources/uncaught_exception_handler.js
diff --git a/extensions/renderer/resources/uncaught_exception_handler.js b/extensions/renderer/resources/uncaught_exception_handler.js
index f87efbc995c50ad7a8ceafcbdbcf081c2a193a93..de4d71e71dc3978092281c50ee92e17d39cd9fdf 100644
--- a/extensions/renderer/resources/uncaught_exception_handler.js
+++ b/extensions/renderer/resources/uncaught_exception_handler.js
@@ -95,16 +95,16 @@ function safeErrorToString(e, omitType) {
* @param {string=} priorStackTrace - Error message suffix.
* @see formatErrorMessage
*/
-exports.handle = function(message, e, priorStackTrace) {
+exports.$set('handle', function(message, e, priorStackTrace) {
message = formatErrorMessage(message, e, priorStackTrace);
handler(message, e);
-};
+});
// |newHandler| A function which matches |handler|.
-exports.setHandler = function(newHandler) {
+exports.$set('setHandler', function(newHandler) {
handler = newHandler;
-};
+});
-exports.getStackTrace = getStackTrace;
-exports.getExtensionStackTrace = getExtensionStackTrace;
-exports.safeErrorToString = safeErrorToString;
+exports.$set('getStackTrace', getStackTrace);
+exports.$set('getExtensionStackTrace', getExtensionStackTrace);
+exports.$set('safeErrorToString', safeErrorToString);
« no previous file with comments | « extensions/renderer/resources/test_custom_bindings.js ('k') | extensions/renderer/resources/utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698