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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/String16STL.h

Issue 2151083002: DevTools: explicitly differentiate ints vs doubles in the protocol bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 years, 5 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: third_party/WebKit/Source/platform/inspector_protocol/String16STL.h
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h b/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h
index e86c4059565c665ea3e11140fdfe37c9f28b715c..cdd183177f7feab1f22fc446963c0b510109c908 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h
+++ b/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h
@@ -42,7 +42,7 @@ public:
const UChar* characters16() const { return m_impl.c_str(); }
std::string utf8() const;
static String16 fromUTF8(const char* stringStart, size_t length);
- static String16 number(int i) { return String16(String16::intToString(i).c_str()); }
+ static String16 fromInteger(int i) { return String16(String16::intToString(i).c_str()); }
static String16 fromDouble(double d) { return String16(String16::doubleToString(d).c_str()); }
static String16 fromDoubleFixedPrecision(double d, int len) { return String16(String16::doubleToString(d).c_str()); }
@@ -170,7 +170,7 @@ public:
void appendNumber(int i)
{
- m_impl = m_impl + String16::number(i).impl();
+ m_impl = m_impl + String16::fromInteger(i).impl();
}
void appendNumber(double d)

Powered by Google App Engine
This is Rietveld 408576698