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

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

Issue 14066003: Don't allow elevation for CHROME_OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bug in set_elevated function. Created 7 years, 8 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
index 814d19a370a95c47871ea9ca26c375f4f130699e..cc4ce173bdb20e25acafad726927efdf58c27dd5 100644
--- a/chrome/browser/resources/managed_mode_block_interstitial.js
+++ b/chrome/browser/resources/managed_mode_block_interstitial.js
@@ -8,8 +8,10 @@ function sendCommand(cmd) {
}
function initialize() {
- $('bypass-block-button').onclick = function(event) {
- sendCommand('preview');
+ if (!cr.isChromeOS) {
+ $('bypass-block-button').onclick = function(event) {
+ sendCommand('preview');
+ }
}
$('back-button').onclick = function(event) {
sendCommand('back');

Powered by Google App Engine
This is Rietveld 408576698