| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/policy/user_cloud_policy_store.h" | 5 #include "chrome/browser/policy/cloud/user_cloud_policy_store.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "chrome/browser/policy/proto/cloud_policy.pb.h" | 9 #include "chrome/browser/policy/proto/cloud_policy.pb.h" |
| 10 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 10 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
| 11 #include "chrome/browser/policy/proto/device_management_local.pb.h" | 11 #include "chrome/browser/policy/proto/device_management_local.pb.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/signin/signin_manager.h" | 13 #include "chrome/browser/signin/signin_manager.h" |
| 14 #include "chrome/browser/signin/signin_manager_factory.h" | 14 #include "chrome/browser/signin/signin_manager_factory.h" |
| 15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 254 |
| 255 void UserCloudPolicyStore::FilterDisallowedPolicies() { | 255 void UserCloudPolicyStore::FilterDisallowedPolicies() { |
| 256 // We don't yet allow setting SyncDisabled in desktop cloud policy, because | 256 // We don't yet allow setting SyncDisabled in desktop cloud policy, because |
| 257 // it causes the user to be signed out which then removes the cloud policy. | 257 // it causes the user to be signed out which then removes the cloud policy. |
| 258 // TODO(atwilson): Remove this once we support signing in with sync disabled | 258 // TODO(atwilson): Remove this once we support signing in with sync disabled |
| 259 // (http://crbug.com/166148). | 259 // (http://crbug.com/166148). |
| 260 policy_map_.Erase(key::kSyncDisabled); | 260 policy_map_.Erase(key::kSyncDisabled); |
| 261 } | 261 } |
| 262 | 262 |
| 263 } // namespace policy | 263 } // namespace policy |
| OLD | NEW |