This PR rewrites our overrides relating to `DeviceInfo` specifically into plaster. This involves dropping `BraveDeviceInfo` and implementing the functionality in terms of extending `DeviceInfo` Resolves https://github.com/brave/brave-browser/issues/55018
25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
diff --git a/components/sync_device_info/device_info.cc b/components/sync_device_info/device_info.cc
|
|
index f828751332055e70fef223044da7dc6944f221a3..c578d1169cb46de6d8cfe3b18b717a7f20d3698c 100644
|
|
--- a/components/sync_device_info/device_info.cc
|
|
+++ b/components/sync_device_info/device_info.cc
|
|
@@ -81,7 +81,8 @@ DeviceInfo::DeviceInfo(
|
|
std::optional<base::Time> auto_sign_out_last_signin_timestamp,
|
|
bool desktop_to_ios_promo_receiving_enabled,
|
|
const MobilePromoOnDesktopPromoTypeSet&
|
|
- desktop_to_ios_promo_receiving_types)
|
|
+ desktop_to_ios_promo_receiving_types,
|
|
+ bool is_self_delete_supported)
|
|
: guid_(guid),
|
|
client_name_(client_name),
|
|
chrome_version_(chrome_version),
|
|
@@ -105,7 +106,8 @@ DeviceInfo::DeviceInfo(
|
|
desktop_to_ios_promo_receiving_enabled_(
|
|
desktop_to_ios_promo_receiving_enabled),
|
|
desktop_to_ios_promo_receiving_types_(
|
|
- desktop_to_ios_promo_receiving_types) {}
|
|
+ desktop_to_ios_promo_receiving_types),
|
|
+ is_self_delete_supported_(is_self_delete_supported) {}
|
|
|
|
DeviceInfo::~DeviceInfo() = default;
|
|
|