Commit 5c0d01db authored by creis's avatar creis Committed by Commit bot

Use nullptr in BrowserURLHandlerImpl constructor.

BUG=477065
TEST=Likely no behavior change; maybe eliminate a crash.

Review URL: https://codereview.chromium.org/1071413004

Cr-Commit-Position: refs/heads/master@{#326901}
parent 79d22ed2
...@@ -89,7 +89,7 @@ BrowserURLHandlerImpl* BrowserURLHandlerImpl::GetInstance() { ...@@ -89,7 +89,7 @@ BrowserURLHandlerImpl* BrowserURLHandlerImpl::GetInstance() {
} }
BrowserURLHandlerImpl::BrowserURLHandlerImpl() : BrowserURLHandlerImpl::BrowserURLHandlerImpl() :
fixup_handler_(null_handler()) { fixup_handler_(nullptr) {
AddHandlerPair(&DebugURLHandler, BrowserURLHandlerImpl::null_handler()); AddHandlerPair(&DebugURLHandler, BrowserURLHandlerImpl::null_handler());
GetContentClient()->browser()->BrowserURLHandlerCreated(this); GetContentClient()->browser()->BrowserURLHandlerCreated(this);
...@@ -102,7 +102,7 @@ BrowserURLHandlerImpl::~BrowserURLHandlerImpl() { ...@@ -102,7 +102,7 @@ BrowserURLHandlerImpl::~BrowserURLHandlerImpl() {
} }
void BrowserURLHandlerImpl::SetFixupHandler(URLHandler handler) { void BrowserURLHandlerImpl::SetFixupHandler(URLHandler handler) {
DCHECK_EQ(null_handler(), fixup_handler_); DCHECK(fixup_handler_ == nullptr);
fixup_handler_ = handler; fixup_handler_ = handler;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment