diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-20 06:33:27 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-20 06:33:27 +0000 |
commit | 34a90773493e1a272ae21b27616fd80bb2d7300b (patch) | |
tree | 02a5db064660ddead32a69b3034acdff5affb650 /base/logging.cc | |
parent | 3b0032a7abc9cc9350253d4f66dcd9a367e206ab (diff) | |
download | chromium_src-34a90773493e1a272ae21b27616fd80bb2d7300b.zip chromium_src-34a90773493e1a272ae21b27616fd80bb2d7300b.tar.gz chromium_src-34a90773493e1a272ae21b27616fd80bb2d7300b.tar.bz2 |
Move operator<< for StringPiece into string_piece.{h,cc}
BUG=110651
TEST=
Review URL: https://chromiumcodereview.appspot.com/9159005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118416 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/logging.cc')
-rw-r--r-- | base/logging.cc | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/base/logging.cc b/base/logging.cc index 1a51312..fabe3f7 100644 --- a/base/logging.cc +++ b/base/logging.cc @@ -835,20 +835,11 @@ void RawLog(int level, const char* message) { base::debug::BreakDebugger(); } +// This was defined at the beginning of this file. +#undef write + } // namespace logging std::ostream& operator<<(std::ostream& out, const wchar_t* wstr) { return out << WideToUTF8(std::wstring(wstr)); } - -namespace base { - -// This was defined at the beginnig of this file. -#undef write - -std::ostream& operator<<(std::ostream& o, const StringPiece& piece) { - o.write(piece.data(), static_cast<std::streamsize>(piece.size())); - return o; -} - -} // namespace base |