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

Unified Diff: net/base/registry_controlled_domain.h

Issue 5685007: Rename all methods accessing Singleton<T> as GetInstance(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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 | « ipc/ipc_logging.cc ('k') | views/focus/external_focus_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/registry_controlled_domain.h
diff --git a/net/base/registry_controlled_domain.h b/net/base/registry_controlled_domain.h
index fc64f3a978a4a3209a48c92976c6e14f3ef950a4..7586c125b621add9239f972997881f05930a8622 100644
--- a/net/base/registry_controlled_domain.h
+++ b/net/base/registry_controlled_domain.h
@@ -198,6 +198,11 @@ class RegistryControlledDomainService {
static size_t GetRegistryLength(const std::wstring& host,
bool allow_unknown_registries);
+ // Returns the singleton instance, after attempting to initialize it.
+ // NOTE that if the effective-TLD data resource can't be found, the instance
+ // will be initialized and continue operation with simple default TLD data.
+ static RegistryControlledDomainService* GetInstance();
+
protected:
// The entire protected API is only for unit testing. I mean it. Don't make
// me come over there!
@@ -221,11 +226,6 @@ class RegistryControlledDomainService {
// To allow construction of the internal singleton instance.
friend struct DefaultSingletonTraits<RegistryControlledDomainService>;
- // Returns the singleton instance, after attempting to initialize it.
- // NOTE that if the effective-TLD data resource can't be found, the instance
- // will be initialized and continue operation with simple default TLD data.
- static RegistryControlledDomainService* GetInstance();
-
// Internal workings of the static public methods. See above.
static std::string GetDomainAndRegistryImpl(const std::string& host);
size_t GetRegistryLengthImpl(const std::string& host,
« no previous file with comments | « ipc/ipc_logging.cc ('k') | views/focus/external_focus_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698