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

Unified Diff: chrome/browser/policy/device_management_backend_impl.cc

Issue 7324017: Split SystemAccess into TimezoneSettings, StatisticsProvider, and SyslogsProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add a missing include Created 9 years, 5 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: chrome/browser/policy/device_management_backend_impl.cc
diff --git a/chrome/browser/policy/device_management_backend_impl.cc b/chrome/browser/policy/device_management_backend_impl.cc
index 72cf087d00196ebef82e7d8eff2e95fed707a6f0..fb3c24b32dd823facd4574aaab8944bb9f8eb886 100644
--- a/chrome/browser/policy/device_management_backend_impl.cc
+++ b/chrome/browser/policy/device_management_backend_impl.cc
@@ -19,7 +19,7 @@
#include "net/url_request/url_request_status.h"
#if defined(OS_CHROMEOS)
-#include "chrome/browser/chromeos/system_access.h"
+#include "chrome/browser/chromeos/system/statistics_provider.h"
#endif
namespace policy {
@@ -420,12 +420,13 @@ std::string DeviceManagementBackendImpl::GetPlatformString() {
std::string os_hardware(base::SysInfo::CPUArchitecture());
#if defined(OS_CHROMEOS)
- chromeos::SystemAccess* sys_lib = chromeos::SystemAccess::GetInstance();
+ chromeos::system::StatisticsProvider* provider =
+ chromeos::system::StatisticsProvider::GetInstance();
std::string hwclass;
std::string board;
- if (!sys_lib->GetMachineStatistic(kMachineInfoHWClass, &hwclass) ||
- !sys_lib->GetMachineStatistic(kMachineInfoBoard, &board)) {
+ if (!provider->GetMachineStatistic(kMachineInfoHWClass, &hwclass) ||
+ !provider->GetMachineStatistic(kMachineInfoBoard, &board)) {
LOG(ERROR) << "Failed to get machine information";
}
os_name += ",CrOS," + board;

Powered by Google App Engine
This is Rietveld 408576698