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

Unified Diff: components/sync/driver/sync_service_utils.cc

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. 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
« no previous file with comments | « components/sync/driver/sync_service_utils.h ('k') | components/sync/driver/sync_stopped_reporter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/sync_service_utils.cc
diff --git a/components/sync/driver/sync_service_utils.cc b/components/sync/driver/sync_service_utils.cc
index c2aeafe97f8423974cb894f94178cf021981de71..070e85f60df0b18b1159d4f2f2fa9c58ea955cef 100644
--- a/components/sync/driver/sync_service_utils.cc
+++ b/components/sync/driver/sync_service_utils.cc
@@ -7,16 +7,15 @@
#include "components/sync/driver/sync_prefs.h"
#include "components/sync/driver/sync_service.h"
-namespace sync_driver {
+namespace syncer {
bool IsTabSyncEnabledAndUnencrypted(SyncService* sync_service,
PrefService* pref_service) {
// Check field trials and settings allow sending the URL on suggest requests.
- sync_driver::SyncPrefs sync_prefs(pref_service);
+ SyncPrefs sync_prefs(pref_service);
return sync_service && sync_service->CanSyncStart() &&
- sync_prefs.GetPreferredDataTypes(syncer::UserTypes())
- .Has(syncer::PROXY_TABS) &&
- !sync_service->GetEncryptedDataTypes().Has(syncer::SESSIONS);
+ sync_prefs.GetPreferredDataTypes(UserTypes()).Has(PROXY_TABS) &&
+ !sync_service->GetEncryptedDataTypes().Has(SESSIONS);
}
-} // namespace sync_driver
+} // namespace syncer
« no previous file with comments | « components/sync/driver/sync_service_utils.h ('k') | components/sync/driver/sync_stopped_reporter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698