| Index: ui/gfx/animation/animation.cc
|
| diff --git a/ui/gfx/animation/animation.cc b/ui/gfx/animation/animation.cc
|
| index fce72e8fce53f5104aa2e6e9513bea631f2164ce..46ca1e927daf3cbf2fc3cbf899a035dec2b051ae 100644
|
| --- a/ui/gfx/animation/animation.cc
|
| +++ b/ui/gfx/animation/animation.cc
|
| @@ -9,10 +9,6 @@
|
| #include "ui/gfx/animation/tween.h"
|
| #include "ui/gfx/rect.h"
|
|
|
| -#if defined(OS_WIN)
|
| -#include "base/win/windows_version.h"
|
| -#endif
|
| -
|
| namespace gfx {
|
|
|
| Animation::Animation(base::TimeDelta timer_interval)
|
| @@ -93,22 +89,7 @@ void Animation::SetContainer(AnimationContainer* container) {
|
|
|
| // static
|
| bool Animation::ShouldRenderRichAnimation() {
|
| -#if defined(OS_WIN)
|
| - if (base::win::GetVersion() >= base::win::VERSION_VISTA) {
|
| - BOOL result;
|
| - // Get "Turn off all unnecessary animations" value.
|
| - if (::SystemParametersInfo(SPI_GETCLIENTAREAANIMATION, 0, &result, 0)) {
|
| - // There seems to be a typo in the MSDN document (as of May 2009):
|
| - // http://msdn.microsoft.com/en-us/library/ms724947(VS.85).aspx
|
| - // The document states that the result is TRUE when animations are
|
| - // _disabled_, but in fact, it is TRUE when they are _enabled_.
|
| - return !!result;
|
| - }
|
| - }
|
| - return !::GetSystemMetrics(SM_REMOTESESSION);
|
| -#else
|
| return true;
|
| -#endif
|
| }
|
|
|
| bool Animation::ShouldSendCanceledFromStop() {
|
|
|