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

Unified Diff: chrome/browser/profiles/profile_manager.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/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 7fde998cc7daddea5c137dbec16513ccdd958339..b7fcd8e19812fd36cf92cf20ff9dacfd88bfbd82 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -1387,7 +1387,7 @@ void ProfileManager::FinishDeletingProfile(
// Disable sync for doomed profile.
if (ProfileSyncServiceFactory::GetInstance()->HasProfileSyncService(
profile)) {
- ProfileSyncService* sync_service =
+ browser_sync::ProfileSyncService* sync_service =
ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile);
if (sync_service->IsSyncRequested()) {
// Record sync stopped by profile destruction if it was on before.
@@ -1396,8 +1396,9 @@ void ProfileManager::FinishDeletingProfile(
syncer::STOP_SOURCE_LIMIT);
}
// Ensure data is cleared even if sync was already off.
- ProfileSyncServiceFactory::GetInstance()->GetForProfile(
- profile)->RequestStop(ProfileSyncService::CLEAR_DATA);
+ ProfileSyncServiceFactory::GetInstance()
+ ->GetForProfile(profile)
+ ->RequestStop(browser_sync::ProfileSyncService::CLEAR_DATA);
}
ProfileAttributesEntry* entry;
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/search/suggestions/suggestions_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698