From dc8caba097e35e536697f3bf6605257317640d26 Mon Sep 17 00:00:00 2001 From: "satish@chromium.org" <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Mon, 13 Dec 2010 16:52:35 +0000 Subject: Rename all methods accessing Singleton<T> as GetInstance(). This is in preparation to a subsequent CL where Singleton<T> will restrict access to only the type being made singleton. This primarily covers files in chrome os and other directories, missed in the previous CL. In a couple of files i changed Singleton<T> usage to LazyInstance<T>, because changing the method name to GetInstance() in there would require a whole lot of updates throughout the chrome os codebase. BUG=65298 TEST=all existing tests should pass. Review URL: http://codereview.chromium.org/5734002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69007 0039d316-1c4b-4281-b951-d872f2087c98 --- views/widget/widget_gtk.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views') diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index b56a03d..6520fea 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -131,7 +131,7 @@ class WidgetGtk::DropObserver : public MessageLoopForUI::Observer { public: DropObserver() {} - static DropObserver* Get() { + static DropObserver* GetInstance() { return Singleton<DropObserver>::get(); } @@ -253,7 +253,7 @@ WidgetGtk::WidgetGtk(Type type) installed_message_loop_observer = true; MessageLoopForUI* loop = MessageLoopForUI::current(); if (loop) - loop->AddObserver(DropObserver::Get()); + loop->AddObserver(DropObserver::GetInstance()); } if (type_ != TYPE_CHILD) -- cgit v1.1