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

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

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 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
« no previous file with comments | « chrome/browser/sync/sync_global_error_unittest.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_STARTUP_TRACKER_H_ 5 #ifndef CHROME_BROWSER_SYNC_SYNC_STARTUP_TRACKER_H_
6 #define CHROME_BROWSER_SYNC_SYNC_STARTUP_TRACKER_H_ 6 #define CHROME_BROWSER_SYNC_SYNC_STARTUP_TRACKER_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 "components/sync_driver/sync_service_observer.h" 10 #include "components/sync/driver/sync_service_observer.h"
11 11
12 class Profile; 12 class Profile;
13 13
14 // SyncStartupTracker provides a centralized way for observers to detect when 14 // SyncStartupTracker provides a centralized way for observers to detect when
15 // ProfileSyncService has successfully started up, or when startup has failed 15 // ProfileSyncService has successfully started up, or when startup has failed
16 // due to some kind of error. This code was originally part of SigninTracker 16 // due to some kind of error. This code was originally part of SigninTracker
17 // but now that sync initialization is no longer a required part of signin, 17 // but now that sync initialization is no longer a required part of signin,
18 // it has been broken out of that class so only those places that care about 18 // it has been broken out of that class so only those places that care about
19 // sync initialization depend on it. 19 // sync initialization depend on it.
20 class SyncStartupTracker : public sync_driver::SyncServiceObserver { 20 class SyncStartupTracker : public sync_driver::SyncServiceObserver {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Profile whose ProfileSyncService we should track. 57 // Profile whose ProfileSyncService we should track.
58 Profile* profile_; 58 Profile* profile_;
59 59
60 // Weak pointer to the observer to notify. 60 // Weak pointer to the observer to notify.
61 Observer* observer_; 61 Observer* observer_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(SyncStartupTracker); 63 DISALLOW_COPY_AND_ASSIGN(SyncStartupTracker);
64 }; 64 };
65 65
66 #endif // CHROME_BROWSER_SYNC_SYNC_STARTUP_TRACKER_H_ 66 #endif // CHROME_BROWSER_SYNC_SYNC_STARTUP_TRACKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_global_error_unittest.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698