| Index: chrome/browser/resources/settings/utils/platform_info.js
|
| diff --git a/chrome/browser/resources/settings/utils/platform_info.js b/chrome/browser/resources/settings/utils/platform_info.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..28d950d564cfc31a9608a6a741db315d6f5f4355
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/settings/utils/platform_info.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 PlatformInfo = {
|
| + /** @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);
|
| + },
|
| +};
|
|
|