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

Unified Diff: chrome/browser/net/predictor.cc

Issue 2922653002: Avoid unnecessary nullptr check. (Closed)
Patch Set: Created 3 years, 7 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: chrome/browser/net/predictor.cc
diff --git a/chrome/browser/net/predictor.cc b/chrome/browser/net/predictor.cc
index 5d73b277c1d45cc6ef19e618cbbd8d52a8f2c0b9..566818448a5ca13bba5baa48e56c8e0ad055ca52 100644
--- a/chrome/browser/net/predictor.cc
+++ b/chrome/browser/net/predictor.cc
@@ -1117,9 +1117,6 @@ void Predictor::InitialObserver::Append(const GURL& url,
Predictor* predictor) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- // TODO(rlp): Do we really need the predictor check here?
- if (nullptr == predictor)
- return;
if (kStartupResolutionCount <= first_navigations_.size())
return;
« 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