refactor(privacy): drop the diagnostics reporting toggle until a reporter exists
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use ely_browser_core::SyncEngine;
|
||||
use ely_domain::{
|
||||
ArchivePolicy, DEFAULT_TRANSLUCENCY_PCT, DiagnosticsReportingPolicy, DownloadPolicy,
|
||||
FavoriteLimit, HistoryRecordingPolicy, NewTabDestination, ProfileId, ProfileSyncPolicy,
|
||||
SearchEngine, SyncObjectKind, SyncObjectPolicy, ThemeMode, WallpaperTheme,
|
||||
ArchivePolicy, DEFAULT_TRANSLUCENCY_PCT, DownloadPolicy, FavoriteLimit, HistoryRecordingPolicy,
|
||||
NewTabDestination, ProfileId, ProfileSyncPolicy, SearchEngine, SyncObjectKind,
|
||||
SyncObjectPolicy, ThemeMode, WallpaperTheme,
|
||||
};
|
||||
use gpui::Context;
|
||||
use gpui_component::slider::SliderValue;
|
||||
@@ -149,17 +149,6 @@ impl ElyShell {
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) fn set_diagnostics_reporting_policy(
|
||||
&mut self,
|
||||
policy: DiagnosticsReportingPolicy,
|
||||
cx: &mut Context<Self>,
|
||||
) {
|
||||
if let ShellState::Ready(core) = &mut self.state {
|
||||
core.set_diagnostics_reporting_policy(policy);
|
||||
cx.notify();
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) fn reset_privacy_settings(&mut self, cx: &mut Context<Self>) {
|
||||
if let ShellState::Ready(core) = &mut self.state {
|
||||
core.reset_privacy_settings();
|
||||
|
||||
Reference in New Issue
Block a user