Chromium Code Reviews| Index: chrome/browser/resources/safe_browsing/safe_browsing.js |
| diff --git a/chrome/browser/resources/safe_browsing/safe_browsing.js b/chrome/browser/resources/safe_browsing/safe_browsing.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b2f583fa4be88f4eea9c23a5b30f4e1f9fe4eb32 |
| --- /dev/null |
| +++ b/chrome/browser/resources/safe_browsing/safe_browsing.js |
| @@ -0,0 +1,17 @@ |
| +cr.define('safe_browsing', function() { |
|
Jialiu Lin
2017/06/15 22:52:43
copy right.
hkamila
2017/06/16 20:53:24
I added the copyright statement in patch #2.
|
| + 'use strict'; |
| + |
| + /** |
| + * Translate the message on loading the page. |
| + */ |
| + function initialize() { |
| + $('sb-under-construction-message').textContent = loadTimeData.getStringF( |
| + 'sbUnderConstructionMessage',loadTimeData.getString('userName')); |
| + } |
| + |
| + return { |
| + initialize: initialize, |
| + }; |
| +}); |
| + |
| +document.addEventListener('DOMContentLoaded', safe_browsing.initialize); |