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

Side by Side Diff: chrome/browser/resources/net_internals/log_util.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 log_util = (function() { 5 log_util = (function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * Creates a new log dump. |events| is a list of all events, |polledData| is 9 * Creates a new log dump. |events| is a list of all events, |polledData| is
10 * an object containing the results of each poll, |tabData| is an object 10 * an object containing the results of each poll, |tabData| is an object
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 } catch (error2) { 264 } catch (error2) {
265 } 265 }
266 } 266 }
267 267
268 if (!parsedDump) 268 if (!parsedDump)
269 return 'Unable to parse log dump as JSON file.'; 269 return 'Unable to parse log dump as JSON file.';
270 return errorString + loadLogDump(parsedDump, fileName); 270 return errorString + loadLogDump(parsedDump, fileName);
271 } 271 }
272 272
273 // Exports. 273 // Exports.
274 return { 274 return {createLogDumpAsync: createLogDumpAsync, loadLogFile: loadLogFile};
275 createLogDumpAsync: createLogDumpAsync,
276 loadLogFile: loadLogFile
277 };
278 })(); 275 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698