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

Side by Side Diff: content/browser/webui/content_web_ui_controller_factory.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/webui/content_web_ui_controller_factory.h" 5 #include "content/browser/webui/content_web_ui_controller_factory.h"
6 6
7 #include "content/browser/accessibility/accessibility_ui.h" 7 #include "content/browser/accessibility/accessibility_ui.h"
8 #include "content/browser/appcache/appcache_internals_ui.h" 8 #include "content/browser/appcache/appcache_internals_ui.h"
9 #include "content/browser/gpu/gpu_internals_ui.h" 9 #include "content/browser/gpu/gpu_internals_ui.h"
10 #include "content/browser/indexed_db/indexed_db_internals_ui.h" 10 #include "content/browser/indexed_db/indexed_db_internals_ui.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #if defined(ENABLE_WEBRTC) 77 #if defined(ENABLE_WEBRTC)
78 if (url.host() == kChromeUIWebRTCInternalsHost) 78 if (url.host() == kChromeUIWebRTCInternalsHost)
79 return new WebRTCInternalsUI(web_ui); 79 return new WebRTCInternalsUI(web_ui);
80 #endif 80 #endif
81 81
82 return nullptr; 82 return nullptr;
83 } 83 }
84 84
85 // static 85 // static
86 ContentWebUIControllerFactory* ContentWebUIControllerFactory::GetInstance() { 86 ContentWebUIControllerFactory* ContentWebUIControllerFactory::GetInstance() {
87 return Singleton<ContentWebUIControllerFactory>::get(); 87 return base::Singleton<ContentWebUIControllerFactory>::get();
88 } 88 }
89 89
90 ContentWebUIControllerFactory::ContentWebUIControllerFactory() { 90 ContentWebUIControllerFactory::ContentWebUIControllerFactory() {
91 } 91 }
92 92
93 ContentWebUIControllerFactory::~ContentWebUIControllerFactory() { 93 ContentWebUIControllerFactory::~ContentWebUIControllerFactory() {
94 } 94 }
95 95
96 } // namespace content 96 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/webui/content_web_ui_controller_factory.h ('k') | content/browser/webui/web_ui_controller_factory_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698