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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/chromeos_utils.h ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/chromeos_utils.h"
6
7 #include "base/sys_info.h"
8 #include "grit/generated_resources.h"
9 #include "ui/base/l10n/l10n_util.h"
10
11 namespace chromeos {
12
13 namespace {
14 const char* kChromeboxBoards[] = { "stumpy", "panther" };
15 }
16
17 base::string16 GetChromeDeviceType() {
18 std::string board = base::SysInfo::GetLsbReleaseBoard();
19 for (unsigned int i = 0; i < arraysize(kChromeboxBoards); ++i) {
20 std::string chromebox = kChromeboxBoards[i];
21 if (board.compare(0, chromebox.length(), chromebox) == 0)
22 return l10n_util::GetStringUTF16(IDS_CHROMEBOX);
23 }
24 return l10n_util::GetStringUTF16(IDS_CHROMEBOOK);
25 }
26
27 } // namespace chromeos
OLDNEW
« 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