Chromium Code Reviews| Index: views/controls/progress_bar.cc |
| diff --git a/views/controls/progress_bar.cc b/views/controls/progress_bar.cc |
| index b8353b640b82d0e39e87c5e6caacaf46695d44af..46b89a2f684acfb6db8371cc31c5ffa6d75f6e0c 100644 |
| --- a/views/controls/progress_bar.cc |
| +++ b/views/controls/progress_bar.cc |
| @@ -9,8 +9,8 @@ |
| #include "base/logging.h" |
| #include "base/string_util.h" |
| #include "base/utf_string_conversions.h" |
| -#include "third_party/skia/include/effects/SkGradientShader.h" |
| #include "third_party/skia/include/effects/SkBlurMaskFilter.h" |
| +#include "third_party/skia/include/effects/SkGradientShader.h" |
| #include "ui/base/accessibility/accessible_view_state.h" |
| #include "ui/gfx/canvas_skia.h" |
| #include "ui/gfx/color_utils.h" |
| @@ -304,10 +304,8 @@ bool ProgressBar::GetTooltipText(const gfx::Point& p, std::wstring* tooltip) { |
| return !tooltip_text_.empty(); |
| } |
| -void ProgressBar::SetEnabled(bool enabled) { |
| - if (enabled == enabled_) |
| - return; |
| - View::SetEnabled(enabled); |
| +void ProgressBar::OnEnabledChanged() { |
| + View::OnEnabledChanged(); |
|
tfarina
2011/05/27 18:14:44
It seems we don't need to override this method as
|
| // TODO(denisromanov): Need to switch progress bar color here? |
| } |