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

Side by Side Diff: chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc

Issue 14885008: Actually deprecate DeviceLocalAccountInfoProto.id (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 7 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 | Annotate | Revision Log
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 #include "chrome/browser/chromeos/policy/device_policy_decoder_chromeos.h" 5 #include "chrome/browser/chromeos/policy/device_policy_decoder_chromeos.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 if (entry->kiosk_app().has_app_id()) { 134 if (entry->kiosk_app().has_app_id()) {
135 entry_dict->SetStringWithoutPathExpansion( 135 entry_dict->SetStringWithoutPathExpansion(
136 chromeos::kAccountsPrefDeviceLocalAccountsKeyKioskAppId, 136 chromeos::kAccountsPrefDeviceLocalAccountsKeyKioskAppId,
137 entry->kiosk_app().app_id()); 137 entry->kiosk_app().app_id());
138 } 138 }
139 if (entry->kiosk_app().has_update_url()) { 139 if (entry->kiosk_app().has_update_url()) {
140 entry_dict->SetStringWithoutPathExpansion( 140 entry_dict->SetStringWithoutPathExpansion(
141 chromeos::kAccountsPrefDeviceLocalAccountsKeyKioskAppUpdateURL, 141 chromeos::kAccountsPrefDeviceLocalAccountsKeyKioskAppUpdateURL,
142 entry->kiosk_app().update_url()); 142 entry->kiosk_app().update_url());
143 } 143 }
144 } else if (entry->has_id()) { 144 } else if (entry->has_deprecated_public_session_id()) {
145 // Deprecated public session specification. 145 // Deprecated public session specification.
146 entry_dict->SetStringWithoutPathExpansion( 146 entry_dict->SetStringWithoutPathExpansion(
147 chromeos::kAccountsPrefDeviceLocalAccountsKeyId, entry->id()); 147 chromeos::kAccountsPrefDeviceLocalAccountsKeyId,
148 entry->deprecated_public_session_id());
148 entry_dict->SetIntegerWithoutPathExpansion( 149 entry_dict->SetIntegerWithoutPathExpansion(
149 chromeos::kAccountsPrefDeviceLocalAccountsKeyType, 150 chromeos::kAccountsPrefDeviceLocalAccountsKeyType,
150 chromeos::DEVICE_LOCAL_ACCOUNT_TYPE_PUBLIC_SESSION); 151 chromeos::DEVICE_LOCAL_ACCOUNT_TYPE_PUBLIC_SESSION);
151 } 152 }
152 account_list->Append(entry_dict.release()); 153 account_list->Append(entry_dict.release());
153 } 154 }
154 policies->Set(key::kDeviceLocalAccounts, 155 policies->Set(key::kDeviceLocalAccounts,
155 POLICY_LEVEL_MANDATORY, 156 POLICY_LEVEL_MANDATORY,
156 POLICY_SCOPE_MACHINE, 157 POLICY_SCOPE_MACHINE,
157 account_list.release()); 158 account_list.release());
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 // Decode the various groups of policies. 519 // Decode the various groups of policies.
519 DecodeLoginPolicies(policy, policies); 520 DecodeLoginPolicies(policy, policies);
520 DecodeKioskPolicies(policy, policies, install_attributes); 521 DecodeKioskPolicies(policy, policies, install_attributes);
521 DecodeNetworkPolicies(policy, policies, install_attributes); 522 DecodeNetworkPolicies(policy, policies, install_attributes);
522 DecodeReportingPolicies(policy, policies); 523 DecodeReportingPolicies(policy, policies);
523 DecodeAutoUpdatePolicies(policy, policies); 524 DecodeAutoUpdatePolicies(policy, policies);
524 DecodeGenericPolicies(policy, policies); 525 DecodeGenericPolicies(policy, policies);
525 } 526 }
526 527
527 } // namespace policy 528 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698