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/prefs/pref_change_registrar.h" | 11 #include "base/prefs/pref_change_registrar.h" |
11 #include "chrome/browser/ui/global_error/global_error.h" | 12 #include "chrome/browser/ui/global_error/global_error.h" |
12 #include "components/keyed_service/core/keyed_service.h" | 13 #include "components/keyed_service/core/keyed_service.h" |
13 | 14 |
14 class Profile; | 15 class Profile; |
15 | 16 |
16 // Shows elevation needed for recovery component install on the wrench menu | 17 // Shows elevation needed for recovery component install on the wrench menu |
17 // using a bubble view and a menu item. | 18 // using a bubble view and a menu item. |
18 class RecoveryInstallGlobalError : public GlobalErrorWithStandardBubble, | 19 class RecoveryInstallGlobalError : public GlobalErrorWithStandardBubble, |
19 public KeyedService { | 20 public KeyedService { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 58 |
58 // Monitors registry change for recovery component install. | 59 // Monitors registry change for recovery component install. |
59 PrefChangeRegistrar pref_registrar_; | 60 PrefChangeRegistrar pref_registrar_; |
60 | 61 |
61 bool has_shown_bubble_view_; | 62 bool has_shown_bubble_view_; |
62 | 63 |
63 DISALLOW_COPY_AND_ASSIGN(RecoveryInstallGlobalError); | 64 DISALLOW_COPY_AND_ASSIGN(RecoveryInstallGlobalError); |
64 }; | 65 }; |
65 | 66 |
66 #endif // CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_ | 67 #endif // CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_ |
OLD | NEW |