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

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

Issue 1272713002: [Sync] Move sync error controller to sync driver component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN Created 5 years, 4 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/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/sync/sync_error_controller.h"
11 #include "chrome/browser/ui/global_error/global_error.h" 10 #include "chrome/browser/ui/global_error/global_error.h"
12 #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"
13 13
14 class ProfileSyncService; 14 class ProfileSyncService;
15 15
16 // Shows sync errors on the wrench menu using a bubble view and a menu item. 16 // Shows sync errors on the wrench menu using a bubble view and a menu item.
17 class SyncGlobalError : public GlobalErrorWithStandardBubble, 17 class SyncGlobalError : public GlobalErrorWithStandardBubble,
18 public SyncErrorController::Observer, 18 public SyncErrorController::Observer,
19 public KeyedService { 19 public KeyedService {
20 public: 20 public:
21 SyncGlobalError(SyncErrorController* error_controller, 21 SyncGlobalError(SyncErrorController* error_controller,
22 ProfileSyncService* profile_sync_service); 22 ProfileSyncService* profile_sync_service);
(...skipping 27 matching lines...) Expand all
50 // The error controller to query for error details. Owned by the 50 // The error controller to query for error details. Owned by the
51 // ProfileSyncService this SyncGlobalError depends on. 51 // ProfileSyncService this SyncGlobalError depends on.
52 SyncErrorController* error_controller_; 52 SyncErrorController* error_controller_;
53 53
54 const ProfileSyncService* service_; 54 const ProfileSyncService* service_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(SyncGlobalError); 56 DISALLOW_COPY_AND_ASSIGN(SyncGlobalError);
57 }; 57 };
58 58
59 #endif // CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ 59 #endif // CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_error_notifier_ash_unittest.cc ('k') | chrome/browser/sync/sync_global_error_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698