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

Unified Diff: chrome/browser/resources/safe_browsing/safe_browsing.js

Issue 2940963002: Added the chrome://safe-browsing/ page as part of the chrome://about (Closed)
Patch Set: Changed the overall location of several files to base them on components/ 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/BUILD.gn » ('j') | components/safe_browsing/web_ui/constants.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2474773c3cea186dbc51e19da2ec2f6168c4e029
--- /dev/null
+++ b/chrome/browser/resources/safe_browsing/safe_browsing.js
@@ -0,0 +1,21 @@
+/* Copyright 2017 The Chromium Authors. All rights reserved.
vakh (use Gerrit instead) 2017/06/23 18:52:02 This file should no longer be needed.
+ * 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');
+ }
+
+ return {
+ initialize: initialize,
+ };
+});
+
+document.addEventListener('DOMContentLoaded', safe_browsing.initialize);
« no previous file with comments | « no previous file | chrome/browser/ui/BUILD.gn » ('j') | components/safe_browsing/web_ui/constants.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698