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

Unified Diff: chrome/browser/ui/webui/chromeos/system_info_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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/register_page_ui.cc ('k') | chrome/browser/ui/webui/net_internals_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/system_info_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/system_info_ui.cc b/chrome/browser/ui/webui/chromeos/system_info_ui.cc
index 74bd2abed876db7aaef17f4010741d633fd5b3a7..a72b32dba06aa95240d9b4b29a1f45c291bfa927 100644
--- a/chrome/browser/ui/webui/chromeos/system_info_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/system_info_ui.cc
@@ -15,7 +15,7 @@
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/chromeos/cros/cros_library.h"
-#include "chrome/browser/chromeos/system_access.h"
+#include "chrome/browser/chromeos/system/syslogs_provider.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
#include "chrome/common/chrome_paths.h"
@@ -48,7 +48,7 @@ class SystemInfoUIHTMLSource : public ChromeURLDataManager::DataSource {
private:
~SystemInfoUIHTMLSource() {}
- void SyslogsComplete(chromeos::LogDictionaryType* sys_info,
+ void SyslogsComplete(chromeos::system::LogDictionaryType* sys_info,
std::string* ignored_content);
CancelableRequestConsumer consumer_;
@@ -92,19 +92,19 @@ void SystemInfoUIHTMLSource::StartDataRequest(const std::string& path,
path_ = path;
request_id_ = request_id;
- chromeos::SystemAccess* system_access =
- chromeos::SystemAccess::GetInstance();
- if (system_access) {
- system_access->RequestSyslogs(
+ chromeos::system::SyslogsProvider* provider =
+ chromeos::system::SyslogsProvider::GetInstance();
+ if (provider) {
+ provider->RequestSyslogs(
false, // don't compress.
- chromeos::SystemAccess::SYSLOGS_SYSINFO,
+ chromeos::system::SyslogsProvider::SYSLOGS_SYSINFO,
&consumer_,
NewCallback(this, &SystemInfoUIHTMLSource::SyslogsComplete));
}
}
void SystemInfoUIHTMLSource::SyslogsComplete(
- chromeos::LogDictionaryType* sys_info,
+ chromeos::system::LogDictionaryType* sys_info,
std::string* ignored_content) {
DCHECK(!ignored_content);
@@ -127,7 +127,7 @@ void SystemInfoUIHTMLSource::SyslogsComplete(
if (sys_info) {
ListValue* details = new ListValue();
strings.Set("details", details);
- chromeos::LogDictionaryType::iterator it;
+ chromeos::system::LogDictionaryType::iterator it;
for (it = sys_info->begin(); it != sys_info->end(); ++it) {
DictionaryValue* val = new DictionaryValue;
val->SetString("stat_name", it->first);
« no previous file with comments | « chrome/browser/ui/webui/chromeos/register_page_ui.cc ('k') | chrome/browser/ui/webui/net_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698