OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_ | 5 #ifndef CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_ |
6 #define CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_ | 6 #define CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/prefs/pref_change_registrar.h" | |
12 #include "chrome/browser/ui/global_error/global_error.h" | 11 #include "chrome/browser/ui/global_error/global_error.h" |
13 #include "components/keyed_service/core/keyed_service.h" | 12 #include "components/keyed_service/core/keyed_service.h" |
| 13 #include "components/prefs/pref_change_registrar.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 // Shows elevation needed for recovery component install on the wrench menu | 17 // Shows elevation needed for recovery component install on the wrench menu |
18 // using a bubble view and a menu item. | 18 // using a bubble view and a menu item. |
19 class RecoveryInstallGlobalError : public GlobalErrorWithStandardBubble, | 19 class RecoveryInstallGlobalError : public GlobalErrorWithStandardBubble, |
20 public KeyedService { | 20 public KeyedService { |
21 public: | 21 public: |
22 explicit RecoveryInstallGlobalError(Profile* profile); | 22 explicit RecoveryInstallGlobalError(Profile* profile); |
23 ~RecoveryInstallGlobalError() override; | 23 ~RecoveryInstallGlobalError() override; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 // Monitors registry change for recovery component install. | 59 // Monitors registry change for recovery component install. |
60 PrefChangeRegistrar pref_registrar_; | 60 PrefChangeRegistrar pref_registrar_; |
61 | 61 |
62 bool has_shown_bubble_view_; | 62 bool has_shown_bubble_view_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(RecoveryInstallGlobalError); | 64 DISALLOW_COPY_AND_ASSIGN(RecoveryInstallGlobalError); |
65 }; | 65 }; |
66 | 66 |
67 #endif // CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_ | 67 #endif // CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_ |
OLD | NEW |