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

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

Issue 400623002: Be more picky in triggering enrollment recovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Julian's comment. Created 6 years, 5 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 // Run enrollment sanity check and UMA stats only upon the first policy 79 // Whether enterprise enrollment validation has yet been done.
80 // read/update. 80 bool enrollment_validation_done_;
81 bool first_update_;
82 81
83 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_; 82 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_;
84 83
85 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS); 84 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS);
86 }; 85 };
87 86
88 } // namespace policy 87 } // namespace policy
89 88
90 #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