Lines Matching refs:preference

33     return pref.GetSpecifics().priority_preference().preference();
35 return pref.GetSpecifics().preference();
51 // List of migrated preference name pairs. If a preference is migrated
52 // (meaning renamed) adding the old and new preference names here will ensure
106 VLOG(1) << "Associating preference " << pref_name;
109 const sync_pb::PreferenceSpecifics& preference = GetSpecifics(sync_pref);
110 DCHECK(pref_name == preference.name() ||
112 preference.name() ==
115 scoped_ptr<base::Value> sync_value(reader.ReadToValue(preference.value()));
117 LOG(ERROR) << "Failed to deserialize preference value: "
128 // Update the local preference based on what we got from the
130 // ignored if the preference is policy controlled.
135 LOG(WARNING) << "Synced value for " << preference.name()
147 LOG(ERROR) << "Failed to update preference.";
152 // This preference has been migrated from an old version that must be
157 if (preference.name() == old_pref_name) {
160 // it's possible the new migrated preference name hasn't been synced
167 DCHECK_EQ(preference.name(), pref_name);
176 LOG(ERROR) << "Failed to update preference.";
194 synced_preferences_.insert(preference.name());
196 // The server does not know about this preference and should be added
200 LOG(ERROR) << "Failed to update preference.";
234 // Maintains a list of old migrated preference names that we wish to sync.
235 // Keep track of these in a list such that when the preference iteration
247 const sync_pb::PreferenceSpecifics& preference = GetSpecifics(*sync_iter);
248 std::string sync_pref_name = preference.name();
258 // We're not syncing this preference locally, ignore the sync data.
281 // Now go over any migrated preference names and build sync data for them too.
331 // If this is not a specially handled preference, server wins.
349 LOG(ERROR) << "Failed to serialize preference value.";
478 // It is possible that we may receive a change to a preference we do not
484 // We migrated this preference name, so do as if the name had not changed.
507 // priority over the default value but is ignored if the preference is
522 const sync_pb::PreferenceSpecifics& preference) {
524 scoped_ptr<base::Value> value(reader.ReadToValue(preference.value()));
526 std::string err = "Failed to deserialize preference value: " +
579 const PrefService::Preference* preference =
581 if (!preference)
585 return; // We are not syncing this preference.
589 if (!preference->IsUserModifiable()) {
590 // If the preference is no longer user modifiable, it must now be controlled
591 // by policy, whose values we do not sync. Just return. If the preference
607 // We are already syncing this preference, just update it's sync node.
609 if (!CreatePrefSyncData(name, *preference->GetValue(), &sync_data)) {
610 LOG(ERROR) << "Failed to update preference.";
617 // This preference has been migrated from an old version that must be kept
622 *preference->GetValue(),
624 LOG(ERROR) << "Failed to update preference.";