| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/chromeos_utils.h" | 5 #include "chrome/browser/chromeos/chromeos_utils.h" |
| 6 | 6 |
| 7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
| 9 #include "grit/generated_resources.h" | 9 #include "chrome/grit/generated_resources.h" |
| 10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
| 11 | 11 |
| 12 namespace chromeos { | 12 namespace chromeos { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // List of ChromeOS board names corresponding to Chromebase devices. Googlers | 16 // List of ChromeOS board names corresponding to Chromebase devices. Googlers |
| 17 // can find a list of ChromeOS device and board names at http://go/cros-names | 17 // can find a list of ChromeOS device and board names at http://go/cros-names |
| 18 const char* const kChromebaseBoards[] = { | 18 const char* const kChromebaseBoards[] = { |
| 19 "monroe", | 19 "monroe", |
| (...skipping 16 matching lines...) Expand all Loading... |
| 36 return l10n_util::GetStringUTF16(IDS_CHROMEBOX); | 36 return l10n_util::GetStringUTF16(IDS_CHROMEBOX); |
| 37 } | 37 } |
| 38 for (size_t i = 0; i < arraysize(kChromebaseBoards); ++i) { | 38 for (size_t i = 0; i < arraysize(kChromebaseBoards); ++i) { |
| 39 if (StartsWithASCII(board, kChromebaseBoards[i], true)) | 39 if (StartsWithASCII(board, kChromebaseBoards[i], true)) |
| 40 return l10n_util::GetStringUTF16(IDS_CHROMEBASE); | 40 return l10n_util::GetStringUTF16(IDS_CHROMEBASE); |
| 41 } | 41 } |
| 42 return l10n_util::GetStringUTF16(IDS_CHROMEBOOK); | 42 return l10n_util::GetStringUTF16(IDS_CHROMEBOOK); |
| 43 } | 43 } |
| 44 | 44 |
| 45 } // namespace chromeos | 45 } // namespace chromeos |
| OLD | NEW |