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.
5 #include "chrome/browser/chromeos/chromeos_utils.h"
7 #include "base/sys_info.h"
8 #include "grit/generated_resources.h"
9 #include "ui/base/l10n/l10n_util.h"
14 const char* kChromeboxBoards
[] = { "stumpy", "panther" };
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
);
24 return l10n_util::GetStringUTF16(IDS_CHROMEBOOK
);
27 } // namespace chromeos