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

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

Issue 2388163002: [Sync] Move //components/sync to the syncer namespace, take 2. (Closed)
Patch Set: Rebase. Created 4 years, 2 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: components/sync/driver/sync_policy_handler.cc
diff --git a/components/sync/driver/sync_policy_handler.cc b/components/sync/driver/sync_policy_handler.cc
index aaff21a567c6b1622ad0af8cb048f95c4f3be685..45bb578df0fdd4940206677dbffb6a935eb59198 100644
--- a/components/sync/driver/sync_policy_handler.cc
+++ b/components/sync/driver/sync_policy_handler.cc
@@ -10,7 +10,7 @@
#include "components/prefs/pref_value_map.h"
#include "components/sync/driver/pref_names.h"
-namespace sync_driver {
+namespace syncer {
SyncPolicyHandler::SyncPolicyHandler()
: policy::TypeCheckingPolicyHandler(policy::key::kSyncDisabled,
@@ -23,7 +23,7 @@ void SyncPolicyHandler::ApplyPolicySettings(const policy::PolicyMap& policies,
const base::Value* value = policies.GetValue(policy_name());
bool disable_sync;
if (value && value->GetAsBoolean(&disable_sync) && disable_sync)
- prefs->SetValue(sync_driver::prefs::kSyncManaged, value->CreateDeepCopy());
+ prefs->SetValue(prefs::kSyncManaged, value->CreateDeepCopy());
}
-} // namespace sync_driver
+} // namespace syncer
« no previous file with comments | « components/sync/driver/sync_policy_handler.h ('k') | components/sync/driver/sync_policy_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698