Index: components/safe_browsing/resources/safe_browsing.js |
diff --git a/components/safe_browsing/resources/safe_browsing.js b/components/safe_browsing/resources/safe_browsing.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..02825abac61ecd29d4a1c5327a97f5a9c5681faa |
--- /dev/null |
+++ b/components/safe_browsing/resources/safe_browsing.js |
@@ -0,0 +1,21 @@ |
+/* Copyright 2017 The Chromium Authors. All rights reserved. |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. */ |
+ |
+cr.define('safe_browsing', function() { |
+ '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); |