Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: chrome/browser/sync/sync_global_error.h

Issue 2354613002: [Sync] Fix namespaces for the browser_sync component. (Closed)
Patch Set: Address comments. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/ui/global_error/global_error.h" 10 #include "chrome/browser/ui/global_error/global_error.h"
11 #include "components/keyed_service/core/keyed_service.h" 11 #include "components/keyed_service/core/keyed_service.h"
12 #include "components/sync/driver/sync_error_controller.h" 12 #include "components/sync/driver/sync_error_controller.h"
13 13
14 class GlobalErrorService; 14 class GlobalErrorService;
15 class LoginUIService; 15 class LoginUIService;
16
17 namespace browser_sync {
16 class ProfileSyncService; 18 class ProfileSyncService;
19 } // namespace browser_sync
17 20
18 // Shows sync errors on the wrench menu using a bubble view and a menu item. 21 // Shows sync errors on the wrench menu using a bubble view and a menu item.
19 class SyncGlobalError : public GlobalErrorWithStandardBubble, 22 class SyncGlobalError : public GlobalErrorWithStandardBubble,
20 public SyncErrorController::Observer, 23 public SyncErrorController::Observer,
21 public KeyedService { 24 public KeyedService {
22 public: 25 public:
23 SyncGlobalError(GlobalErrorService* global_error_service, 26 SyncGlobalError(GlobalErrorService* global_error_service,
24 LoginUIService* login_ui_service, 27 LoginUIService* login_ui_service,
25 SyncErrorController* error_controller, 28 SyncErrorController* error_controller,
26 ProfileSyncService* profile_sync_service); 29 browser_sync::ProfileSyncService* profile_sync_service);
27 ~SyncGlobalError() override; 30 ~SyncGlobalError() override;
28 31
29 // KeyedService: 32 // KeyedService:
30 void Shutdown() override; 33 void Shutdown() override;
31 34
32 // GlobalErrorWithStandardBubble: 35 // GlobalErrorWithStandardBubble:
33 bool HasMenuItem() override; 36 bool HasMenuItem() override;
34 int MenuItemCommandID() override; 37 int MenuItemCommandID() override;
35 base::string16 MenuItemLabel() override; 38 base::string16 MenuItemLabel() override;
36 void ExecuteMenuItem(Browser* browser) override; 39 void ExecuteMenuItem(Browser* browser) override;
(...skipping 15 matching lines...) Expand all
52 base::string16 menu_label_; 55 base::string16 menu_label_;
53 56
54 GlobalErrorService* global_error_service_; 57 GlobalErrorService* global_error_service_;
55 58
56 const LoginUIService* login_ui_service_; 59 const LoginUIService* login_ui_service_;
57 60
58 // The error controller to query for error details. Owned by the 61 // The error controller to query for error details. Owned by the
59 // ProfileSyncService this SyncGlobalError depends on. 62 // ProfileSyncService this SyncGlobalError depends on.
60 SyncErrorController* error_controller_; 63 SyncErrorController* error_controller_;
61 64
62 const ProfileSyncService* sync_service_; 65 const browser_sync::ProfileSyncService* sync_service_;
63 66
64 DISALLOW_COPY_AND_ASSIGN(SyncGlobalError); 67 DISALLOW_COPY_AND_ASSIGN(SyncGlobalError);
65 }; 68 };
66 69
67 #endif // CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ 70 #endif // CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_error_notifier_factory_ash.cc ('k') | chrome/browser/sync/sync_global_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698