 Issue 29355247:
  Noissue - fix according to coding style  (Closed)
    
  
    Issue 29355247:
  Noissue - fix according to coding style  (Closed) 
  | Left: | ||
| Right: | 
| OLD | NEW | 
|---|---|
| 1 /* | 1 /* | 
| 2 * This Source Code is subject to the terms of the Mozilla Public License | 2 * This Source Code is subject to the terms of the Mozilla Public License | 
| 3 * version 2.0 (the "License"). You can obtain a copy of the License at | 3 * version 2.0 (the "License"). You can obtain a copy of the License at | 
| 4 * http://mozilla.org/MPL/2.0/. | 4 * http://mozilla.org/MPL/2.0/. | 
| 5 */ | 5 */ | 
| 6 | 6 | 
| 7 'use strict'; | |
| 
Wladimir Palant
2016/09/29 10:36:10
Double quotation marks please (same for the other
 
sergei
2016/09/29 12:46:16
Done in https://codereview.adblockplus.org/2935526
 | |
| 8 | |
| 7 /** | 9 /** | 
| 8 * @module commandLine | 10 * @module commandLine | 
| 9 */ | 11 */ | 
| 10 | 12 | 
| 11 Cu.import("resource://gre/modules/Services.jsm"); | 13 const {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", {}); | 
| 12 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); | |
| 13 | 14 | 
| 14 let CommandLineHandler = | 15 let CommandLineHandler = | 
| 15 { | 16 { | 
| 16 // Starting the entry with "k" makes it have slightly higher priority than def ault command line handlers. | 17 // Starting the entry with "k" makes it have slightly higher priority than def ault command line handlers. | 
| 17 classDescription: "k-abpcrawler", | 18 classDescription: "k-abpcrawler", | 
| 18 contractID: "@adblockplus.org/abpcrawler/cmdline;1", | 19 contractID: "@adblockplus.org/abpcrawler/cmdline;1", | 
| 19 classID: Components.ID("{973636c2-e842-11e4-b02c-1681e6b88ec1}"), | 20 classID: Components.ID("{973636c2-e842-11e4-b02c-1681e6b88ec1}"), | 
| 20 xpcom_categories: ["command-line-handler"], | 21 xpcom_categories: ["command-line-handler"], | 
| 21 | 22 | 
| 22 init: function() | 23 init: function() | 
| (...skipping 27 matching lines...) Expand all Loading... | |
| 50 { | 51 { | 
| 51 let port = cmdline.handleFlagWithParam("crawler-port", false); | 52 let port = cmdline.handleFlagWithParam("crawler-port", false); | 
| 52 if (port != null) | 53 if (port != null) | 
| 53 require("main").startup(parseInt(port)); | 54 require("main").startup(parseInt(port)); | 
| 54 }, | 55 }, | 
| 55 | 56 | 
| 56 QueryInterface: XPCOMUtils.generateQI([Ci.nsICommandLineHandler, Ci.nsIFactory ]) | 57 QueryInterface: XPCOMUtils.generateQI([Ci.nsICommandLineHandler, Ci.nsIFactory ]) | 
| 57 }; | 58 }; | 
| 58 | 59 | 
| 59 CommandLineHandler.init(); | 60 CommandLineHandler.init(); | 
| OLD | NEW |