42 lines
1.8 KiB
Diff
42 lines
1.8 KiB
Diff
diff --git a/components/sync_device_info/device_info.h b/components/sync_device_info/device_info.h
|
|
index 1b3c17ca587d408561b52edbd7130fbd3c684aac..c74008d68bd48fd06039b10634bdd39107e2f52b 100644
|
|
--- a/components/sync_device_info/device_info.h
|
|
+++ b/components/sync_device_info/device_info.h
|
|
@@ -202,12 +202,27 @@ class DeviceInfo {
|
|
bool desktop_to_ios_promo_receiving_enabled,
|
|
const MobilePromoOnDesktopPromoTypeSet&
|
|
desktop_to_ios_promo_receiving_types,
|
|
- GlicExperimentalTriggeringState glic_experimental_triggering_state);
|
|
+ GlicExperimentalTriggeringState glic_experimental_triggering_state,
|
|
+ SelfDeleteSupport self_delete_support =
|
|
+ SelfDeleteSupport::kNotSupported);
|
|
|
|
DeviceInfo(const DeviceInfo&) = delete;
|
|
DeviceInfo& operator=(const DeviceInfo&) = delete;
|
|
|
|
~DeviceInfo();
|
|
+ SelfDeleteSupport self_delete_support() const {
|
|
+ return self_delete_support_;
|
|
+ }
|
|
+ void set_self_delete_support(SelfDeleteSupport self_delete_support) {
|
|
+ self_delete_support_ = self_delete_support;
|
|
+ }
|
|
+ // Gets the OS in string form.
|
|
+ std::string GetOSString() const;
|
|
+ // Gets the device type in string form.
|
|
+ std::string GetDeviceTypeString() const;
|
|
+ // Converts the DeviceInfo values to a JS friendly DictionaryValue,
|
|
+ // which extension APIs can expose to third party apps.
|
|
+ base::DictValue ToValue() const;
|
|
|
|
// Sync specific unique identifier for the device. Note if a device
|
|
// is wiped and sync is set up again this id WILL be different.
|
|
@@ -390,6 +405,7 @@ class DeviceInfo {
|
|
// NOTE: when adding a member, don't forget to update
|
|
// |StoredDeviceInfoStillAccurate| in device_info_sync_bridge.cc or else
|
|
// changes in that member might not trigger uploads of updated DeviceInfos.
|
|
+ SelfDeleteSupport self_delete_support_;
|
|
};
|
|
|
|
} // namespace syncer
|