summaryrefslogtreecommitdiff
path: root/url/gurl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'url/gurl.cc')
-rw-r--r--url/gurl.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/url/gurl.cc b/url/gurl.cc
index 6930f73b6..9f2e5fad6 100644
--- a/url/gurl.cc
+++ b/url/gurl.cc
@@ -13,6 +13,7 @@
#include "base/check_op.h"
#include "base/no_destructor.h"
+#include "base/notreached.h"
#include "base/strings/string_piece.h"
#include "base/strings/string_util.h"
#include "base/trace_event/base_tracing.h"
@@ -158,7 +159,9 @@ const std::string& GURL::spec() const {
if (is_valid_ || spec_.empty())
return spec_;
- DCHECK(false) << "Trying to get the spec of an invalid URL!";
+ // TODO(crbug.com/851128): Make sure this no longer hits before making
+ // NOTREACHED_NORETURN();
+ NOTREACHED() << "Trying to get the spec of an invalid URL!";
return base::EmptyString();
}