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

Side by Side Diff: chrome/renderer/resources/neterror.js

Issue 977323003: Disable easter egg on enterprised enrolled devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: browsertest changes Created 5 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 function toggleHelpBox() { 5 function toggleHelpBox() {
6 var helpBoxOuter = document.getElementById('details'); 6 var helpBoxOuter = document.getElementById('details');
7 helpBoxOuter.classList.toggle('hidden'); 7 helpBoxOuter.classList.toggle('hidden');
8 var detailsButton = document.getElementById('details-button'); 8 var detailsButton = document.getElementById('details-button');
9 if (helpBoxOuter.classList.contains('hidden')) 9 if (helpBoxOuter.classList.contains('hidden'))
10 detailsButton.innerText = detailsButton.detailsText; 10 detailsButton.innerText = detailsButton.detailsText;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 classList.add(newClass); 56 classList.add(newClass);
57 if (oldClass !== undefined) 57 if (oldClass !== undefined)
58 classList.remove(oldClass); 58 classList.remove(oldClass);
59 59
60 classList['last_icon_class'] = newClass; 60 classList['last_icon_class'] = newClass;
61 61
62 if (newClass == 'icon-offline') { 62 if (newClass == 'icon-offline') {
63 document.body.classList.add('offline'); 63 document.body.classList.add('offline');
64 new Runner('.interstitial-wrapper'); 64 if (!loadTimeData.valueExists('disableEasterEgg')) {
65 new Runner('.interstitial-wrapper');
66 } else {
67 delete Runner;
Andrew T Wilson (Slow) 2015/03/13 13:44:57 Put a comment here describing while you're doing t
edwardjung 2015/03/13 16:09:06 I'm going to change this since we'll be showing a
68 }
65 } else { 69 } else {
66 document.body.classList.add('neterror'); 70 document.body.classList.add('neterror');
67 } 71 }
68 } 72 }
69 73
70 // Does a search using |baseSearchUrl| and the text in the search box. 74 // Does a search using |baseSearchUrl| and the text in the search box.
71 function search(baseSearchUrl) { 75 function search(baseSearchUrl) {
72 var searchTextNode = document.getElementById('search-box'); 76 var searchTextNode = document.getElementById('search-box');
73 document.location = baseSearchUrl + searchTextNode.value; 77 document.location = baseSearchUrl + searchTextNode.value;
74 return false; 78 return false;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 171
168 // Add a main message paragraph. 172 // Add a main message paragraph.
169 if (loadTimeData.valueExists('primaryParagraph')) { 173 if (loadTimeData.valueExists('primaryParagraph')) {
170 var p = document.querySelector('#main-message p'); 174 var p = document.querySelector('#main-message p');
171 p.innerHTML = loadTimeData.getString('primaryParagraph'); 175 p.innerHTML = loadTimeData.getString('primaryParagraph');
172 p.hidden = false; 176 p.hidden = false;
173 } 177 }
174 } 178 }
175 179
176 document.addEventListener('DOMContentLoaded', onDocumentLoad); 180 document.addEventListener('DOMContentLoaded', onDocumentLoad);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698