Index: ui/gfx/point.cc |
diff --git a/ui/gfx/point.cc b/ui/gfx/point.cc |
index 0dc5274e8cabe3d3a1d338811445ba8e8b8a551e..ba9ced7b9594bf83fbbdc088115600a5e8900791 100644 |
--- a/ui/gfx/point.cc |
+++ b/ui/gfx/point.cc |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -8,7 +8,7 @@ |
#include <windows.h> |
#endif |
-#include <ostream> |
+#include "base/stringprintf.h" |
namespace gfx { |
@@ -49,8 +49,8 @@ CGPoint Point::ToCGPoint() const { |
} |
#endif |
-std::ostream& operator<<(std::ostream& out, const gfx::Point& p) { |
- return out << p.x() << "," << p.y(); |
+std::string Point::ToString() const { |
+ return base::StringPrintf("%d,%d", x_, y_); |
} |
} // namespace gfx |