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

Unified Diff: webkit/appcache/appcache_interceptor.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 | « views/widget/root_view.cc ('k') | webkit/appcache/appcache_interceptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_interceptor.h
diff --git a/webkit/appcache/appcache_interceptor.h b/webkit/appcache/appcache_interceptor.h
index 5a7acfd335fba91d7e9cb7707a587ecf39b39429..a13dcc6087038e50b19d187f7ad86a5da67868d5 100644
--- a/webkit/appcache/appcache_interceptor.h
+++ b/webkit/appcache/appcache_interceptor.h
@@ -22,7 +22,7 @@ class AppCacheInterceptor : public net::URLRequest::Interceptor {
// Registers a singleton instance with the net library.
// Should be called early in the IO thread prior to initiating requests.
static void EnsureRegistered() {
- CHECK(instance());
+ CHECK(GetInstance());
}
// Must be called to make a request eligible for retrieval from an appcache.
@@ -38,6 +38,8 @@ class AppCacheInterceptor : public net::URLRequest::Interceptor {
int64* cache_id,
GURL* manifest_url);
+ static AppCacheInterceptor* GetInstance();
+
protected:
// Overridde from net::URLRequest::Interceptor:
virtual net::URLRequestJob* MaybeIntercept(net::URLRequest* request);
@@ -48,10 +50,6 @@ class AppCacheInterceptor : public net::URLRequest::Interceptor {
private:
friend struct DefaultSingletonTraits<AppCacheInterceptor>;
- static AppCacheInterceptor* instance() {
- return Singleton<AppCacheInterceptor>::get();
- }
-
AppCacheInterceptor();
virtual ~AppCacheInterceptor();
« no previous file with comments | « views/widget/root_view.cc ('k') | webkit/appcache/appcache_interceptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698