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

Unified Diff: chrome/browser/performance_monitor/key_builder.cc

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 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: chrome/browser/performance_monitor/key_builder.cc
diff --git a/chrome/browser/performance_monitor/key_builder.cc b/chrome/browser/performance_monitor/key_builder.cc
index 53b46cd8c17db26e443aef003041af33bfb398a4..df740bb2b260a026b51a89e54c9a521cf451c29f 100644
--- a/chrome/browser/performance_monitor/key_builder.cc
+++ b/chrome/browser/performance_monitor/key_builder.cc
@@ -174,46 +174,46 @@ void KeyBuilder::PopulateKeyMaps() {
}
std::string KeyBuilder::CreateActiveIntervalKey(const base::Time& time) {
- return StringPrintf("%016" PRId64, time.ToInternalValue());
+ return base::StringPrintf("%016" PRId64, time.ToInternalValue());
}
std::string KeyBuilder::CreateMetricKey(const base::Time& time,
const MetricType type,
const std::string& activity) {
- return StringPrintf("%c%c%016" PRId64 "%c%s",
- metric_type_to_metric_key_char_[type],
- kDelimiter, time.ToInternalValue(),
- kDelimiter, activity.c_str());
+ return base::StringPrintf("%c%c%016" PRId64 "%c%s",
+ metric_type_to_metric_key_char_[type],
+ kDelimiter, time.ToInternalValue(),
+ kDelimiter, activity.c_str());
}
std::string KeyBuilder::CreateEventKey(const base::Time& time,
const EventType type) {
- return StringPrintf("%016" PRId64 "%c%c",
- time.ToInternalValue(), kDelimiter,
- event_type_to_event_key_char_[type]);
+ return base::StringPrintf("%016" PRId64 "%c%c",
+ time.ToInternalValue(), kDelimiter,
+ event_type_to_event_key_char_[type]);
}
std::string KeyBuilder::CreateRecentKey(const base::Time& time,
const MetricType type,
const std::string& activity) {
- return StringPrintf("%016" PRId64 "%c%c%c%s",
- time.ToInternalValue(),
- kDelimiter, metric_type_to_metric_key_char_[type],
- kDelimiter, activity.c_str());
+ return base::StringPrintf("%016" PRId64 "%c%c%c%s",
+ time.ToInternalValue(),
+ kDelimiter, metric_type_to_metric_key_char_[type],
+ kDelimiter, activity.c_str());
}
std::string KeyBuilder::CreateRecentMapKey(const MetricType type,
const std::string& activity) {
- return StringPrintf("%s%c%c",
- activity.c_str(),
- kDelimiter, metric_type_to_metric_key_char_[type]);
+ return base::StringPrintf("%s%c%c",
+ activity.c_str(),
+ kDelimiter, metric_type_to_metric_key_char_[type]);
}
std::string KeyBuilder::CreateMaxValueKey(const MetricType type,
const std::string& activity) {
- return StringPrintf("%c%c%s",
- metric_type_to_metric_key_char_[type],
- kDelimiter, activity.c_str());
+ return base::StringPrintf("%c%c%s",
+ metric_type_to_metric_key_char_[type],
+ kDelimiter, activity.c_str());
}
EventType KeyBuilder::EventKeyToEventType(const std::string& event_key) {

Powered by Google App Engine
This is Rietveld 408576698