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

Unified Diff: chrome/browser/resources/device_log_ui/device_log_ui.js

Issue 1643513002: Catch exception when creating device log entries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/device_log_ui/device_log_ui.js
diff --git a/chrome/browser/resources/device_log_ui/device_log_ui.js b/chrome/browser/resources/device_log_ui/device_log_ui.js
index a562ed7eddbd1d0efcabca85aa895c1fa8181c0e..c3f4c8f3dd1c6b366970999d5cf7f2014406b78c 100644
--- a/chrome/browser/resources/device_log_ui/device_log_ui.js
+++ b/chrome/browser/resources/device_log_ui/device_log_ui.js
@@ -95,7 +95,9 @@ var DeviceLogUI = (function() {
* @param {Object} data A JSON structure of event log entries.
*/
var getLogCallback = function(data) {
- createEventLog(JSON.parse(data));
+ try {
+ createEventLog(JSON.parse(data));
+ } catch(e) {}
stevenjb 2016/01/27 18:13:08 This is fine as-is, but we might want to put somet
};
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698