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

Unified Diff: chrome/browser/ui/webui/chromeos/register_page_ui.cc

Issue 7324017: Split SystemAccess into TimezoneSettings, StatisticsProvider, and SyslogsProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments 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/ui/webui/chromeos/register_page_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/register_page_ui.cc b/chrome/browser/ui/webui/chromeos/register_page_ui.cc
index 5cae02cdbdf6b75a5f10031c40c368e23cd73b7b..aa13345fd235ecd9f7f091eb5bcd98244ca875d9 100644
--- a/chrome/browser/ui/webui/chromeos/register_page_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/register_page_ui.cc
@@ -17,7 +17,7 @@
#include "chrome/browser/chromeos/cros/network_library.h"
#include "chrome/browser/chromeos/customization_document.h"
#include "chrome/browser/chromeos/login/wizard_controller.h"
-#include "chrome/browser/chromeos/system_access.h"
+#include "chrome/browser/chromeos/system/statistics_provider.h"
#include "chrome/browser/chromeos/version_loader.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
@@ -274,14 +274,16 @@ void RegisterPageHandler::SendUserInfo() {
#if defined(OS_CHROMEOS)
DictionaryValue value;
- chromeos::SystemAccess * sys_lib =
- chromeos::SystemAccess::GetInstance();
+ chromeos::system::StatisticsProvider * provider =
+ chromeos::system::StatisticsProvider::GetInstance();
// Required info.
std::string system_hwqual;
std::string serial_number;
- if (!sys_lib->GetMachineStatistic(kMachineInfoSystemHwqual, &system_hwqual) ||
- !sys_lib->GetMachineStatistic(kMachineInfoSerialNumber, &serial_number)) {
+ if (!provider->GetMachineStatistic(kMachineInfoSystemHwqual,
+ &system_hwqual) ||
+ !provider->GetMachineStatistic(kMachineInfoSerialNumber,
+ &serial_number)) {
SkipRegistration("Failed to get required machine info.");
return;
}
« no previous file with comments | « chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc ('k') | chrome/browser/ui/webui/chromeos/system_info_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698