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

Unified Diff: chrome/browser/resources/settings/utils/utils.js

Issue 986843002: Scaffold for MD-Settings, inside chrome://md-settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add to chrome://md-settings 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/utils/utils.js
diff --git a/chrome/browser/resources/settings/utils/utils.js b/chrome/browser/resources/settings/utils/utils.js
new file mode 100644
index 0000000000000000000000000000000000000000..5b1dc657d83074d70d44045e51a31b2d2ff47851
--- /dev/null
+++ b/chrome/browser/resources/settings/utils/utils.js
@@ -0,0 +1,13 @@
+// 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 utils = {
Jeremy Klein 2015/03/07 23:55:14 We should probably use a module pattern here.
Jeremy Klein 2015/03/07 23:55:14 nit: The name utils tends to lead to dumping groun
+ /** @return {boolean} True if this is on Chrome OS. */
+ isChromeOs: function() {
+ // Temporary hack to show Chrome OS settings for testing and
+ // development.
+ return /CrOS/.test(navigator.userAgent) ||
+ /cros/i.test(window.location.href);
+ },
+};

Powered by Google App Engine
This is Rietveld 408576698