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

Unified Diff: chrome/browser/chromeos/chromeos_utils.cc

Issue 197313007: Add Easy Unlock options to chrome://settings behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
« no previous file with comments | « chrome/browser/chromeos/chromeos_utils.h ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/chromeos_utils.cc
diff --git a/chrome/browser/chromeos/chromeos_utils.cc b/chrome/browser/chromeos/chromeos_utils.cc
new file mode 100644
index 0000000000000000000000000000000000000000..24182883d7a9c05126e7ebc2ae5b1ddef55ae05d
--- /dev/null
+++ b/chrome/browser/chromeos/chromeos_utils.cc
@@ -0,0 +1,27 @@
+// Copyright 2014 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.
+
+#include "chrome/browser/chromeos/chromeos_utils.h"
+
+#include "base/sys_info.h"
+#include "grit/generated_resources.h"
+#include "ui/base/l10n/l10n_util.h"
+
+namespace chromeos {
+
+namespace {
+const char* kChromeboxBoards[] = { "stumpy", "panther" };
+}
+
+base::string16 GetChromeDeviceType() {
+ std::string board = base::SysInfo::GetLsbReleaseBoard();
+ for (unsigned int i = 0; i < arraysize(kChromeboxBoards); ++i) {
+ std::string chromebox = kChromeboxBoards[i];
+ if (board.compare(0, chromebox.length(), chromebox) == 0)
+ return l10n_util::GetStringUTF16(IDS_CHROMEBOX);
+ }
+ return l10n_util::GetStringUTF16(IDS_CHROMEBOOK);
+}
+
+} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/chromeos_utils.h ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698