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

Unified Diff: content/browser/browser_url_handler_impl.cc

Issue 1071413004: Use nullptr in BrowserURLHandlerImpl constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_url_handler_impl.cc
diff --git a/content/browser/browser_url_handler_impl.cc b/content/browser/browser_url_handler_impl.cc
index 438feb3ac4ec7df6b51cebf8b76970cdcefce9e6..63ddf4924b8a3457dfb4e361519650e2c2a37d98 100644
--- a/content/browser/browser_url_handler_impl.cc
+++ b/content/browser/browser_url_handler_impl.cc
@@ -89,7 +89,7 @@ BrowserURLHandlerImpl* BrowserURLHandlerImpl::GetInstance() {
}
BrowserURLHandlerImpl::BrowserURLHandlerImpl() :
- fixup_handler_(null_handler()) {
+ fixup_handler_(nullptr) {
AddHandlerPair(&DebugURLHandler, BrowserURLHandlerImpl::null_handler());
GetContentClient()->browser()->BrowserURLHandlerCreated(this);
@@ -102,7 +102,7 @@ BrowserURLHandlerImpl::~BrowserURLHandlerImpl() {
}
void BrowserURLHandlerImpl::SetFixupHandler(URLHandler handler) {
- DCHECK_EQ(null_handler(), fixup_handler_);
+ DCHECK(fixup_handler_ == nullptr);
Charlie Reis 2015/04/24 21:22:52 DCHECK_EQ wasn't happy doing the comparison betwee
fixup_handler_ = handler;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698