| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYNC_SYNC_GLOBAL_ERROR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ |
| 6 #define CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ | 6 #define CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "chrome/browser/sync/profile_sync_service_observer.h" | 11 #include "chrome/browser/sync/profile_sync_service_observer.h" |
| 12 #include "chrome/browser/ui/global_error.h" | 12 #include "chrome/browser/ui/global_error/global_error.h" |
| 13 | 13 |
| 14 class ProfileSyncService; | 14 class ProfileSyncService; |
| 15 class SigninManager; | 15 class SigninManager; |
| 16 | 16 |
| 17 // Shows sync errors on the wrench menu using a bubble view and a | 17 // Shows sync errors on the wrench menu using a bubble view and a |
| 18 // menu item. | 18 // menu item. |
| 19 class SyncGlobalError : public GlobalError, | 19 class SyncGlobalError : public GlobalError, |
| 20 public ProfileSyncServiceObserver { | 20 public ProfileSyncServiceObserver { |
| 21 public: | 21 public: |
| 22 SyncGlobalError(ProfileSyncService* service, SigninManager* signin); | 22 SyncGlobalError(ProfileSyncService* service, SigninManager* signin); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 49 string16 bubble_accept_label_; | 49 string16 bubble_accept_label_; |
| 50 string16 bubble_message_; | 50 string16 bubble_message_; |
| 51 string16 menu_label_; | 51 string16 menu_label_; |
| 52 ProfileSyncService* service_; | 52 ProfileSyncService* service_; |
| 53 SigninManager* signin_; | 53 SigninManager* signin_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(SyncGlobalError); | 55 DISALLOW_COPY_AND_ASSIGN(SyncGlobalError); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 #endif // CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ | 58 #endif // CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ |
| OLD | NEW |