diff options
Diffstat (limited to 'chrome/browser/sync/util/fast_dump.h')
-rw-r--r-- | chrome/browser/sync/util/fast_dump.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/chrome/browser/sync/util/fast_dump.h b/chrome/browser/sync/util/fast_dump.h index 9266f0e..44e48c1 100644 --- a/chrome/browser/sync/util/fast_dump.h +++ b/chrome/browser/sync/util/fast_dump.h @@ -4,12 +4,13 @@ #ifndef CHROME_BROWSER_SYNC_UTIL_FAST_DUMP_H_ #define CHROME_BROWSER_SYNC_UTIL_FAST_DUMP_H_ +#pragma once #include <ostream> #include <streambuf> #include <string> -#include "base/string_util.h" +#include "base/string_number_conversions.h" using std::ostream; using std::streambuf; @@ -27,34 +28,31 @@ class FastDump { ostream::sentry sentry_; streambuf* const out_; }; -} // namespace browser_sync -inline browser_sync::FastDump& operator << - (browser_sync::FastDump& dump, int64 n) { - string numbuf(Int64ToString(n)); +inline FastDump& operator << (FastDump& dump, int64 n) { + string numbuf(base::Int64ToString(n)); const char* number = numbuf.c_str(); dump.out_->sputn(number, numbuf.length()); return dump; } -inline browser_sync::FastDump& operator << - (browser_sync::FastDump& dump, int32 n) { - string numbuf(IntToString(n)); +inline FastDump& operator << (FastDump& dump, int32 n) { + string numbuf(base::IntToString(n)); const char* number = numbuf.c_str(); dump.out_->sputn(number, numbuf.length()); return dump; } -inline browser_sync::FastDump& operator << - (browser_sync::FastDump& dump, const char* s) { +inline FastDump& operator << (FastDump& dump, const char* s) { dump.out_->sputn(s, strlen(s)); return dump; } -inline browser_sync::FastDump& operator << - (browser_sync::FastDump& dump, const string& s) { +inline FastDump& operator << (FastDump& dump, const string& s) { dump.out_->sputn(s.data(), s.size()); return dump; } +} // namespace browser_sync + #endif // CHROME_BROWSER_SYNC_UTIL_FAST_DUMP_H_ |