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

Unified Diff: chrome/browser/resources/shared/js/cr.js

Issue 11467013: First cut at UI for saving net_internals data into a file for mobile (Android and Ios). (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/shared/js/cr.js
===================================================================
--- chrome/browser/resources/shared/js/cr.js (revision 171385)
+++ chrome/browser/resources/shared/js/cr.js (working copy)
@@ -344,6 +344,14 @@
cr.isLinux = /Linux/.test(navigator.userAgent);
/**
+ * Whether this is on Mobile or not.
+ */
+ cr.isMobile = /Android/.test(navigator.userAgent) ||
+ /IPhone/.test(navigator.userAgent) ||
+ /IPad/.test(navigator.userAgent) ||
+ /IPod/.test(navigator.userAgent);
+
+ /**
* Whether this uses GTK or not.
*/
cr.isGTK = typeof chrome.getVariableValue == 'function' &&

Powered by Google App Engine
This is Rietveld 408576698