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

Unified Diff: chrome/browser/metrics/metrics_log_serializer.cc

Issue 104493005: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years 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/metrics/metrics_log.cc ('k') | chrome/browser/metrics/metrics_log_serializer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_log_serializer.cc
diff --git a/chrome/browser/metrics/metrics_log_serializer.cc b/chrome/browser/metrics/metrics_log_serializer.cc
index e25b379ff4cc0057bf14d8872303105f0aff1c0b..241abeffe04d78168cfae5486b19a0eb67a1a49e 100644
--- a/chrome/browser/metrics/metrics_log_serializer.cc
+++ b/chrome/browser/metrics/metrics_log_serializer.cc
@@ -93,7 +93,7 @@ void MetricsLogSerializer::DeserializeLogs(
else
pref = prefs::kMetricsOngoingLogs;
- const ListValue* unsent_logs = local_state->GetList(pref);
+ const base::ListValue* unsent_logs = local_state->GetList(pref);
ReadLogsFromPrefList(*unsent_logs, logs);
}
@@ -131,7 +131,7 @@ void MetricsLogSerializer::WriteLogsToPrefList(
return;
// Store size at the beginning of the list.
- list->Append(Value::CreateIntegerValue(local_list.size() - start));
+ list->Append(base::Value::CreateIntegerValue(local_list.size() - start));
base::MD5Context ctx;
base::MD5Init(&ctx);
@@ -143,19 +143,19 @@ void MetricsLogSerializer::WriteLogsToPrefList(
// take a valid UTF8 string.
base::Base64Encode(it->log_text(), &encoded_log);
base::MD5Update(&ctx, encoded_log);
- list->Append(Value::CreateStringValue(encoded_log));
+ list->Append(base::Value::CreateStringValue(encoded_log));
}
// Append hash to the end of the list.
base::MD5Digest digest;
base::MD5Final(&digest, &ctx);
- list->Append(Value::CreateStringValue(base::MD5DigestToBase16(digest)));
+ list->Append(base::Value::CreateStringValue(base::MD5DigestToBase16(digest)));
DCHECK(list->GetSize() >= 3); // Minimum of 3 elements (size, data, hash).
}
// static
MetricsLogSerializer::LogReadStatus MetricsLogSerializer::ReadLogsFromPrefList(
- const ListValue& list,
+ const base::ListValue& list,
std::vector<MetricsLogManager::SerializedLog>* local_list) {
if (list.GetSize() == 0)
return MakeRecallStatusHistogram(LIST_EMPTY);
@@ -184,7 +184,7 @@ MetricsLogSerializer::LogReadStatus MetricsLogSerializer::ReadLogsFromPrefList(
base::MD5Init(&ctx);
std::string encoded_log;
size_t local_index = 0;
- for (ListValue::const_iterator it = list.begin() + 1;
+ for (base::ListValue::const_iterator it = list.begin() + 1;
it != list.end() - 1; // Last element is the checksum.
++it, ++local_index) {
bool valid = (*it)->GetAsString(&encoded_log);
« no previous file with comments | « chrome/browser/metrics/metrics_log.cc ('k') | chrome/browser/metrics/metrics_log_serializer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698