| 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/chromeos/policy/user_policy_disk_cache.h" | 5 #include "chrome/browser/chromeos/policy/user_policy_disk_cache.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 "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
| 13 #include "chrome/browser/policy/cloud/enterprise_metrics.h" | |
| 14 #include "chrome/browser/policy/proto/cloud/device_management_local.pb.h" | 13 #include "chrome/browser/policy/proto/cloud/device_management_local.pb.h" |
| 14 #include "components/policy/core/common/cloud/enterprise_metrics.h" |
| 15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 16 | 16 |
| 17 namespace em = enterprise_management; | 17 namespace em = enterprise_management; |
| 18 | 18 |
| 19 namespace policy { | 19 namespace policy { |
| 20 | 20 |
| 21 UserPolicyDiskCache::Delegate::~Delegate() {} | 21 UserPolicyDiskCache::Delegate::~Delegate() {} |
| 22 | 22 |
| 23 UserPolicyDiskCache::UserPolicyDiskCache( | 23 UserPolicyDiskCache::UserPolicyDiskCache( |
| 24 const base::WeakPtr<Delegate>& delegate, | 24 const base::WeakPtr<Delegate>& delegate, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 kMetricPolicyStoreFailed, | 137 kMetricPolicyStoreFailed, |
| 138 policy::kMetricPolicySize); | 138 policy::kMetricPolicySize); |
| 139 return; | 139 return; |
| 140 } | 140 } |
| 141 UMA_HISTOGRAM_ENUMERATION(policy::kMetricPolicy, | 141 UMA_HISTOGRAM_ENUMERATION(policy::kMetricPolicy, |
| 142 kMetricPolicyStoreSucceeded, | 142 kMetricPolicyStoreSucceeded, |
| 143 policy::kMetricPolicySize); | 143 policy::kMetricPolicySize); |
| 144 } | 144 } |
| 145 | 145 |
| 146 } // namespace policy | 146 } // namespace policy |
| OLD | NEW |