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

Side by Side Diff: chrome/browser/chromeos/settings/device_settings_provider.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/settings/device_settings_provider.h" 5 #include "chrome/browser/chromeos/settings/device_settings_provider.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 if (entry->kiosk_app().has_app_id()) { 488 if (entry->kiosk_app().has_app_id()) {
489 entry_dict->SetStringWithoutPathExpansion( 489 entry_dict->SetStringWithoutPathExpansion(
490 kAccountsPrefDeviceLocalAccountsKeyKioskAppId, 490 kAccountsPrefDeviceLocalAccountsKeyKioskAppId,
491 entry->kiosk_app().app_id()); 491 entry->kiosk_app().app_id());
492 } 492 }
493 if (entry->kiosk_app().has_update_url()) { 493 if (entry->kiosk_app().has_update_url()) {
494 entry_dict->SetStringWithoutPathExpansion( 494 entry_dict->SetStringWithoutPathExpansion(
495 kAccountsPrefDeviceLocalAccountsKeyKioskAppUpdateURL, 495 kAccountsPrefDeviceLocalAccountsKeyKioskAppUpdateURL,
496 entry->kiosk_app().update_url()); 496 entry->kiosk_app().update_url());
497 } 497 }
498 } else if (entry->has_id()) { 498 } else if (entry->has_deprecated_public_session_id()) {
499 // Deprecated public session specification. 499 // Deprecated public session specification.
500 entry_dict->SetStringWithoutPathExpansion( 500 entry_dict->SetStringWithoutPathExpansion(
501 kAccountsPrefDeviceLocalAccountsKeyId, entry->id()); 501 kAccountsPrefDeviceLocalAccountsKeyId,
502 entry->deprecated_public_session_id());
502 entry_dict->SetIntegerWithoutPathExpansion( 503 entry_dict->SetIntegerWithoutPathExpansion(
503 kAccountsPrefDeviceLocalAccountsKeyType, 504 kAccountsPrefDeviceLocalAccountsKeyType,
504 DEVICE_LOCAL_ACCOUNT_TYPE_PUBLIC_SESSION); 505 DEVICE_LOCAL_ACCOUNT_TYPE_PUBLIC_SESSION);
505 } 506 }
506 account_list->Append(entry_dict.release()); 507 account_list->Append(entry_dict.release());
507 } 508 }
508 } 509 }
509 new_values_cache->SetValue(kAccountsPrefDeviceLocalAccounts, 510 new_values_cache->SetValue(kAccountsPrefDeviceLocalAccounts,
510 account_list.release()); 511 account_list.release());
511 512
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 void DeviceSettingsProvider::AttemptMigration() { 940 void DeviceSettingsProvider::AttemptMigration() {
940 if (device_settings_service_->HasPrivateOwnerKey()) { 941 if (device_settings_service_->HasPrivateOwnerKey()) {
941 PrefValueMap::const_iterator i; 942 PrefValueMap::const_iterator i;
942 for (i = migration_values_.begin(); i != migration_values_.end(); ++i) 943 for (i = migration_values_.begin(); i != migration_values_.end(); ++i)
943 DoSet(i->first, *i->second); 944 DoSet(i->first, *i->second);
944 migration_values_.Clear(); 945 migration_values_.Clear();
945 } 946 }
946 } 947 }
947 948
948 } // namespace chromeos 949 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698