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 |