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

Side by Side Diff: chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h

Issue 295103013: Add UMA for policy load result of enrolled Chrome OS devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix has_dm_token conditional. Created 6 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void OnPolicyStored(); 69 void OnPolicyStored();
70 70
71 // Re-syncs policy and status from |device_settings_service_|. 71 // Re-syncs policy and status from |device_settings_service_|.
72 void UpdateFromService(); 72 void UpdateFromService();
73 73
74 chromeos::DeviceSettingsService* device_settings_service_; 74 chromeos::DeviceSettingsService* device_settings_service_;
75 EnterpriseInstallAttributes* install_attributes_; 75 EnterpriseInstallAttributes* install_attributes_;
76 76
77 scoped_refptr<base::SequencedTaskRunner> background_task_runner_; 77 scoped_refptr<base::SequencedTaskRunner> background_task_runner_;
78 78
79 // Ensure that UMA stats are only reported once per browser start.
80 bool uma_done_;
81
79 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_; 82 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_;
80 83
81 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS); 84 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS);
82 }; 85 };
83 86
84 } // namespace policy 87 } // namespace policy
85 88
86 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ 89 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698