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

Unified Diff: components/sync_driver/sync_policy_handler.cc

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 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
deleted file mode 100644
index e70b155826e07afe48286e81237f13c962de4d1c..0000000000000000000000000000000000000000
--- a/components/sync_driver/sync_policy_handler.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/sync_driver/sync_policy_handler.h"
-
-#include "base/values.h"
-#include "components/policy/core/common/policy_map.h"
-#include "components/prefs/pref_value_map.h"
-#include "components/sync_driver/pref_names.h"
-#include "policy/policy_constants.h"
-
-namespace sync_driver {
-
-SyncPolicyHandler::SyncPolicyHandler()
- : policy::TypeCheckingPolicyHandler(policy::key::kSyncDisabled,
- base::Value::TYPE_BOOLEAN) {}
-
-SyncPolicyHandler::~SyncPolicyHandler() {
-}
-
-void SyncPolicyHandler::ApplyPolicySettings(const policy::PolicyMap& policies,
- PrefValueMap* prefs) {
- 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());
-}
-
-} // namespace sync_driver
« 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