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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 function sendCommand(cmd) {
6 window.domAutomationController.setAutomationId(1);
7 window.domAutomationController.send(cmd);
8 }
9
10 function initialize() {
11 if (loadTimeData.getBoolean('allowAccessRequests')) {
12 $('request-access-button').onclick = function(event) {
13 updateAfterRequestSent();
14 sendCommand('request');
15 };
16 } else {
17 $('request-access-button').hidden = true;
18 }
19 $('back-button').onclick = function(event) {
20 sendCommand('back');
21 };
22 }
23
24 /**
25 * Updates the interstitial to show that the request was sent.
26 */
27 function updateAfterRequestSent() {
28 $('error-img').hidden = true;
29 $('request-access-button').hidden = true;
30 $('block-page-message').hidden = true;
31 $('request-sent-message').hidden = false;
32 }
33
34 document.addEventListener('DOMContentLoaded', initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698