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

Unified Diff: headless/public/util/error_reporter.cc

Issue 2466923002: headless: Only report protocol parsing errors when DCHECK is enabled (Closed)
Patch Set: Add comment 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
« no previous file with comments | « headless/public/util/error_reporter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/util/error_reporter.cc
diff --git a/headless/public/util/error_reporter.cc b/headless/public/util/error_reporter.cc
index 88722d7b79d035e071099fb0ea9520308e1d510e..9daa01986702f75868d188bc45e777615302d621 100644
--- a/headless/public/util/error_reporter.cc
+++ b/headless/public/util/error_reporter.cc
@@ -14,6 +14,7 @@ ErrorReporter::ErrorReporter() {}
ErrorReporter::~ErrorReporter() {}
+#if DCHECK_IS_ON()
void ErrorReporter::Push() {
path_.push_back(nullptr);
}
@@ -47,5 +48,6 @@ void ErrorReporter::AddError(base::StringPiece description) {
bool ErrorReporter::HasErrors() const {
return !errors_.empty();
}
+#endif // DCHECK_IS_ON()
} // namespace headless
« no previous file with comments | « headless/public/util/error_reporter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698