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

Unified Diff: media/tools/player_wtl/movie.cc

Issue 5682008: Make members of Singleton<T> private and only visible to the singleton type. (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: media/tools/player_wtl/movie.cc
diff --git a/media/tools/player_wtl/movie.cc b/media/tools/player_wtl/movie.cc
index 70ede51b578b4a478648245973feabcd8296ba6f..7a06cb9bc6d570e7b4aee81cb7c3d3ea85d18941 100644
--- a/media/tools/player_wtl/movie.cc
+++ b/media/tools/player_wtl/movie.cc
@@ -4,6 +4,7 @@
#include "media/tools/player_wtl/movie.h"
+#include "base/singleton.h"
#include "base/utf_string_conversions.h"
#include "media/base/filter_collection.h"
#include "media/base/pipeline_impl.h"
@@ -39,6 +40,10 @@ Movie::Movie()
Movie::~Movie() {
}
+Movie* Movie::GetInstance() {
+ return Singleton<Movie>::get();
+}
+
bool Movie::IsOpen() {
return pipeline_ != NULL;
}

Powered by Google App Engine
This is Rietveld 408576698