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

Unified Diff: app/active_window_watcher_x.cc

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 | « app/active_window_watcher_x.h ('k') | app/surface/io_surface_support_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/active_window_watcher_x.cc
diff --git a/app/active_window_watcher_x.cc b/app/active_window_watcher_x.cc
index 9b861e65e9522e557d1dda0bb9f38e07c0b022fb..657496487d9b22d9899c295269d7ce004996b178 100644
--- a/app/active_window_watcher_x.cc
+++ b/app/active_window_watcher_x.cc
@@ -11,13 +11,18 @@
static Atom kNetActiveWindowAtom = None;
// static
+ActiveWindowWatcherX* ActiveWindowWatcherX::GetInstance() {
+ return Singleton<ActiveWindowWatcherX>::get();
+}
+
+// static
void ActiveWindowWatcherX::AddObserver(Observer* observer) {
- Singleton<ActiveWindowWatcherX>::get()->observers_.AddObserver(observer);
+ GetInstance()->observers_.AddObserver(observer);
}
// static
void ActiveWindowWatcherX::RemoveObserver(Observer* observer) {
- Singleton<ActiveWindowWatcherX>::get()->observers_.RemoveObserver(observer);
+ GetInstance()->observers_.RemoveObserver(observer);
}
ActiveWindowWatcherX::ActiveWindowWatcherX() {
« no previous file with comments | « app/active_window_watcher_x.h ('k') | app/surface/io_surface_support_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698