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

Unified Diff: third_party/inspector_protocol/lib/ErrorSupport_cpp.template

Issue 2479693002: Roll third_party/inspector_protocol to 2952a8eb5d99fbc194946526b57d67ed52093699 (Closed)
Patch Set: Created 4 years, 1 month 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/inspector_protocol/lib/ErrorSupport_cpp.template
diff --git a/third_party/inspector_protocol/lib/ErrorSupport_cpp.template b/third_party/inspector_protocol/lib/ErrorSupport_cpp.template
index 34593ec13de84d3f3a948fbb3022f1a645683d81..1d107f697a22cb661c56b43007452a57eb91ce6f 100644
--- a/third_party/inspector_protocol/lib/ErrorSupport_cpp.template
+++ b/third_party/inspector_protocol/lib/ErrorSupport_cpp.template
@@ -8,17 +8,8 @@
namespace {{namespace}} {
{% endfor %}
-ErrorSupport::ErrorSupport() : m_errorString(nullptr) { }
-ErrorSupport::ErrorSupport(String* errorString) : m_errorString(errorString) { }
-ErrorSupport::~ErrorSupport()
-{
- if (m_errorString && hasErrors()) {
- StringBuilder builder;
- builder.append("Internal error(s): ");
- builder.append(errors());
- *m_errorString = builder.toString();
- }
-}
+ErrorSupport::ErrorSupport() { }
+ErrorSupport::~ErrorSupport() { }
void ErrorSupport::setName(const String& name)
{

Powered by Google App Engine
This is Rietveld 408576698