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

Unified Diff: net/base/registry_controlled_domain.cc

Issue 9581029: Eliminate an unnecessary #include. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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: net/base/registry_controlled_domain.cc
===================================================================
--- net/base/registry_controlled_domain.cc (revision 124285)
+++ net/base/registry_controlled_domain.cc (working copy)
@@ -46,7 +46,6 @@
#include "net/base/registry_controlled_domain.h"
#include "base/logging.h"
-#include "base/memory/singleton.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "googleurl/src/gurl.h"
@@ -143,11 +142,7 @@
// static
void RegistryControlledDomainService::UseFindDomainFunction(
FindDomainPtr function) {
- if (function) {
- find_domain_function_ = function;
- } else {
- find_domain_function_ = Perfect_Hash::FindDomain;
- }
+ find_domain_function_ = function ? function : Perfect_Hash::FindDomain;
}
// static
« 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