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

Side by Side Diff: components/dom_distiller/core/javascript/domdistiller.js

Issue 2924983002: Remove "named arguments" in domdistiller.js (Closed)
Patch Set: format 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 // Applies DomDistillerJs to the content of the page and returns a 5 // Applies DomDistillerJs to the content of the page and returns a
6 // DomDistillerResults (as a javascript object/dict). 6 // DomDistillerResults (as a javascript object/dict).
7 (function(options, stringify_output) { 7 (function(options, stringify_output) {
8 try { 8 try {
9 function initialize() { 9 function initialize() {
10 // This include will be processed at build time by grit. 10 // This include will be processed at build time by grit.
(...skipping 15 matching lines...) Expand all
26 26
27 if (stringify_output) { 27 if (stringify_output) {
28 return JSON.stringify(res); 28 return JSON.stringify(res);
29 } 29 }
30 return res; 30 return res;
31 } catch (e) { 31 } catch (e) {
32 window.console.error("Error during distillation: " + e); 32 window.console.error("Error during distillation: " + e);
33 if (e.stack != undefined) window.console.error(e.stack); 33 if (e.stack != undefined) window.console.error(e.stack);
34 } 34 }
35 return undefined; 35 return undefined;
36 })(options = $$OPTIONS, 36 })($$OPTIONS, $$STRINGIFY)
37 stringify_output = $$STRINGIFY)
OLDNEW
« 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