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

Unified Diff: ash/common/system/chromeos/devicetype_utils.cc

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 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
Index: ash/common/system/chromeos/devicetype_utils.cc
diff --git a/ash/common/system/chromeos/devicetype_utils.cc b/ash/common/system/chromeos/devicetype_utils.cc
deleted file mode 100644
index 6feac8d1f1dbc22e5123db9dd75ed9a430da863b..0000000000000000000000000000000000000000
--- a/ash/common/system/chromeos/devicetype_utils.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2015 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 "ash/common/system/chromeos/devicetype_utils.h"
-
-#include "ash/strings/grit/ash_strings.h"
-#include "chromeos/system/devicetype.h"
-#include "ui/base/l10n/l10n_util.h"
-
-namespace ash {
-
-base::string16 SubstituteChromeOSDeviceType(int resource_id) {
- return l10n_util::GetStringFUTF16(resource_id, GetChromeOSDeviceName());
-}
-
-base::string16 GetChromeOSDeviceName() {
- return l10n_util::GetStringUTF16(GetChromeOSDeviceTypeResourceId());
-}
-
-int GetChromeOSDeviceTypeResourceId() {
- switch (chromeos::GetDeviceType()) {
- case chromeos::DeviceType::kChromebase:
- return IDS_ASH_CHROMEBASE;
- case chromeos::DeviceType::kChromebook:
- return IDS_ASH_CHROMEBOOK;
- case chromeos::DeviceType::kChromebox:
- return IDS_ASH_CHROMEBOX;
- case chromeos::DeviceType::kChromebit:
- return IDS_ASH_CHROMEBIT;
- case chromeos::DeviceType::kUnknown:
- default:
- return IDS_ASH_CHROMEDEVICE;
- }
-}
-
-} // namespace ash
« no previous file with comments | « ash/common/system/chromeos/devicetype_utils.h ('k') | ash/common/system/chromeos/enterprise/enterprise_domain_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698