DescriptionRemove TraceStringWithCopy::operator const char*()
Remove it to avoid misuse like the following:
TRACE_EVENT1("a", "b", "c",
condition ? TRACE_STR_COPY(short_live_string) : "literal");
In the above case, the argument value is actually const char*, not
TraceValueWithCopy because it is automatically converted back to
const char* with the const char* operator.
Found and fixed one error in WebKit.
Also changed some TRACE_STR_COPY(cstring.ascii().data()) to
cstring.ascii() because we always copy CStrings.
R=dsinclair,haraken
TBR=... changes of callers about TRACE_STR_NO_COPY
BUG=382789
(perhaps the reason)
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176375
Patch Set 1 #
Total comments: 5
Patch Set 2 : TraceStringWithCopy/TraceStringWithoutCopy #Patch Set 3 : Subset #
Messages
Total messages: 13 (0 generated)
|