Chromium Code Reviews| OLD | NEW |
|---|---|
| (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" }; | |
|
Mattias Nissler (ping if slow)
2014/03/19 18:15:19
indentation should be zero spaces.
Also, are you
Tim Song
2014/03/19 23:41:37
Done. It's better to keep this list up to date her
| |
| 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 | |
| OLD | NEW |