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

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

Issue 384023002: Rename "managed (mode|user)" to "supervised user" (part 6) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: break long lines Created 6 years, 5 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
Index: chrome/browser/resources/managed_mode_block_interstitial.js
diff --git a/chrome/browser/resources/managed_mode_block_interstitial.js b/chrome/browser/resources/managed_mode_block_interstitial.js
deleted file mode 100644
index 313ba6e23b551fa17e6fd26ed20d8ff40d716518..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/managed_mode_block_interstitial.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2012 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.
-
-function sendCommand(cmd) {
- window.domAutomationController.setAutomationId(1);
- window.domAutomationController.send(cmd);
-}
-
-function initialize() {
- if (loadTimeData.getBoolean('allowAccessRequests')) {
- $('request-access-button').onclick = function(event) {
- updateAfterRequestSent();
- sendCommand('request');
- };
- } else {
- $('request-access-button').hidden = true;
- }
- $('back-button').onclick = function(event) {
- sendCommand('back');
- };
-}
-
-/**
- * Updates the interstitial to show that the request was sent.
- */
-function updateAfterRequestSent() {
- $('error-img').hidden = true;
- $('request-access-button').hidden = true;
- $('block-page-message').hidden = true;
- $('request-sent-message').hidden = false;
-}
-
-document.addEventListener('DOMContentLoaded', initialize);

Powered by Google App Engine
This is Rietveld 408576698