Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: test/stub-modules/utils.js

Issue 29501607: Issue 5459 - Add support to show a notification based on the number of ads blocked (Closed)
Left Patch Set: Update commit message Created July 31, 2017, 3:19 p.m.
Right Patch Set: Show notification for blockedTotal* only if Prefs.show_statsinpopup Created Aug. 24, 2017, 4:35 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « test/stub-modules/prefs.js ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 "use strict"; 1 "use strict";
2 2
3 const crypto = require("crypto"); 3 const crypto = require("crypto");
4 4
5 exports.Utils = { 5 exports.Utils = {
6 appLocale: "en-US",
7
6 generateChecksum(lines) 8 generateChecksum(lines)
7 { 9 {
8 let buffer = new Buffer(lines.join("\n"), "utf-8"); 10 let buffer = new Buffer(lines.join("\n"), "utf-8");
9 let hash = crypto.createHash("md5"); 11 let hash = crypto.createHash("md5");
10 hash.update(buffer); 12 hash.update(buffer);
11 return hash.digest("base64").replace(/=+$/, ""); 13 return hash.digest("base64").replace(/=+$/, "");
12 }, 14 },
13 yield() {} 15 yield() {}
14 }; 16 };
LEFTRIGHT

Powered by Google App Engine
This is Rietveld