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

Unified Diff: chrome/browser/resources/security_warnings/interstitial_v2_mobile.js

Issue 866723005: Revert of Update SSL/malware/net error interstitial design (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/security_warnings/interstitial_v2_mobile.js
diff --git a/chrome/browser/resources/security_warnings/interstitial_v2_mobile.js b/chrome/browser/resources/security_warnings/interstitial_v2_mobile.js
deleted file mode 100644
index 9e270909e42b88456b9bd3692b9ea7cebda63081..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/security_warnings/interstitial_v2_mobile.js
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2015 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.
-
-var mobileNav = false;
-
-/**
- * For small screen mobile the navigation buttons are moved
- * below the advanced text.
- */
-function onResize() {
- var helpOuterBox = document.querySelector('#details');
- var mainContent = document.querySelector('#main-content');
- var mediaQuery = '(max-width: 420px) and (orientation: portrait),' +
- '(max-width: 736px) and (max-height: 420px) and (orientation: landscape)';
-
- mobileNav = window.matchMedia(mediaQuery).matches;
-
- mainContent.classList.toggle('hidden', false);
- helpOuterBox.classList.toggle('hidden', true);
-}
-
-function setupMobileNav() {
- window.addEventListener('resize', onResize);
- onResize();
-}
-
-document.addEventListener('DOMContentLoaded', setupMobileNav);

Powered by Google App Engine
This is Rietveld 408576698