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

Unified Diff: chrome/browser/policy/user_cloud_policy_manager.cc

Issue 10825415: Added code to persist downloaded cloud policy to disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed debugging statements that are unneeded. Created 8 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: chrome/browser/policy/user_cloud_policy_manager.cc
diff --git a/chrome/browser/policy/user_cloud_policy_manager.cc b/chrome/browser/policy/user_cloud_policy_manager.cc
index 5b70cb30b7b72f37889a45d01b3af6254f1bc944..3572ad4657694c3cacb795b23509632bb2ced1d0 100644
--- a/chrome/browser/policy/user_cloud_policy_manager.cc
+++ b/chrome/browser/policy/user_cloud_policy_manager.cc
@@ -33,7 +33,7 @@ namespace {
// Subdirectory in the user's profile for storing user policies.
const FilePath::CharType kPolicyDir[] = FILE_PATH_LITERAL("Device Management");
-// File in the above directory for stroing user policy dmtokens.
+// File in the above directory for storing user policy dmtokens.
const FilePath::CharType kTokenCacheFile[] = FILE_PATH_LITERAL("Token");
// File in the above directory for storing user policy data.
const FilePath::CharType kPolicyCacheFile[] = FILE_PATH_LITERAL("Policy");
@@ -123,8 +123,10 @@ bool UserCloudPolicyManager::IsClientRegistered() const {
void UserCloudPolicyManager::RegisterClient(const std::string& access_token) {
DCHECK(cloud_policy_service()) << "Callers must invoke Initialize() first";
- if (!cloud_policy_service()->client()->is_registered())
+ if (!cloud_policy_service()->client()->is_registered()) {
+ DVLOG(1) << "Registering client with access token: " << access_token;
cloud_policy_service()->client()->Register(access_token);
+ }
}
bool UserCloudPolicyManager::IsInitializationComplete() const {

Powered by Google App Engine
This is Rietveld 408576698