Chromium Code Reviews| Index: ash/common/system/update/update_observer.h |
| diff --git a/ash/common/system/update/update_observer.h b/ash/common/system/update/update_observer.h |
| index 3912f0dd0429cd9715471ee49e38fe4a6d1b03f8..ceea5a42c99c4e48e967f212927227267db605bb 100644 |
| --- a/ash/common/system/update/update_observer.h |
| +++ b/ash/common/system/update/update_observer.h |
| @@ -9,13 +9,17 @@ |
| namespace ash { |
| -struct UpdateInfo; |
| +namespace mojom { |
| +enum class UpdateSeverity; |
| +} |
| class ASH_EXPORT UpdateObserver { |
| public: |
| - virtual ~UpdateObserver() {} |
| + virtual void ShowUpdateIcon(mojom::UpdateSeverity severity, |
|
msw
2016/12/09 23:41:51
It's somewhat odd that we have an observer pattern
James Cook
2016/12/12 18:15:12
I removed the observer. This revealed a problem --
|
| + bool factory_reset_required) = 0; |
| - virtual void OnUpdateRecommended(const UpdateInfo& info) = 0; |
| + protected: |
| + virtual ~UpdateObserver() {} |
| }; |
| } // namespace ash |