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

Unified Diff: ceee/ie/broker/api_dispatcher.h

Issue 5581008: Add a new GetInstance() method for singleton classes, take 2. (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
Index: ceee/ie/broker/api_dispatcher.h
diff --git a/ceee/ie/broker/api_dispatcher.h b/ceee/ie/broker/api_dispatcher.h
index 6f6a86aebd560d5fe07a12632e2a649a060b1eb0..ce51dfbc0110eab2a47eb75a9035d9e2e572c2b8 100644
--- a/ceee/ie/broker/api_dispatcher.h
+++ b/ceee/ie/broker/api_dispatcher.h
@@ -307,8 +307,10 @@ ApiDispatcher::Invocation* NewApiInvocation() {
// A singleton that initializes and keeps the ApiDispatcher used by production
// code.
-class ProductionApiDispatcher : public ApiDispatcher,
- public Singleton<ProductionApiDispatcher> {
+class ProductionApiDispatcher : public ApiDispatcher {
+ public:
+ static ProductionApiDispatcher* GetInstance();
+
private:
// This ensures no construction is possible outside of the class itself.
friend struct DefaultSingletonTraits<ProductionApiDispatcher>;

Powered by Google App Engine
This is Rietveld 408576698