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

Unified Diff: chrome/browser/chromeos/login/signin/auth_sync_observer.cc

Issue 2354613002: [Sync] Fix namespaces for the browser_sync component. (Closed)
Patch Set: Address comments. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/signin/auth_sync_observer.cc
diff --git a/chrome/browser/chromeos/login/signin/auth_sync_observer.cc b/chrome/browser/chromeos/login/signin/auth_sync_observer.cc
index 2a50bde3a610c79cccc6c8d2f69b4ed6409964d3..f95b305cd491e5213c76559350fef29eb8dccbcb 100644
--- a/chrome/browser/chromeos/login/signin/auth_sync_observer.cc
+++ b/chrome/browser/chromeos/login/signin/auth_sync_observer.cc
@@ -19,7 +19,10 @@
#include "google_apis/gaia/gaia_auth_util.h"
class Profile;
+
+namespace browser_sync {
class ProfileSyncService;
+} // namespace browser_sync
namespace chromeos {
@@ -31,14 +34,14 @@ AuthSyncObserver::~AuthSyncObserver() {
}
void AuthSyncObserver::StartObserving() {
- ProfileSyncService* sync_service =
+ browser_sync::ProfileSyncService* sync_service =
ProfileSyncServiceFactory::GetForProfile(profile_);
if (sync_service)
sync_service->AddObserver(this);
}
void AuthSyncObserver::Shutdown() {
- ProfileSyncService* sync_service =
+ browser_sync::ProfileSyncService* sync_service =
ProfileSyncServiceFactory::GetForProfile(profile_);
if (sync_service)
sync_service->RemoveObserver(this);
@@ -47,7 +50,7 @@ void AuthSyncObserver::Shutdown() {
void AuthSyncObserver::OnStateChanged() {
DCHECK(user_manager::UserManager::Get()->IsLoggedInAsUserWithGaiaAccount() ||
user_manager::UserManager::Get()->IsLoggedInAsSupervisedUser());
- ProfileSyncService* sync_service =
+ browser_sync::ProfileSyncService* sync_service =
ProfileSyncServiceFactory::GetForProfile(profile_);
const user_manager::User* user =
ProfileHelper::Get()->GetUserByProfile(profile_);

Powered by Google App Engine
This is Rietveld 408576698