Skip to content

Commit bb2cc01

Browse files
authored
chore: remove privacy policy link (#5494)
1 parent 58e833d commit bb2cc01

File tree

4 files changed

+1
-16
lines changed

4 files changed

+1
-16
lines changed

lib/common/declarations.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,6 @@ interface IAnalyticsSettingsService {
851851
canDoRequest(): Promise<boolean>;
852852
getUserId(): Promise<string>;
853853
getClientName(): string;
854-
getPrivacyPolicyLink(): string;
855854
/**
856855
* Gets current user sessions count.
857856
* @param {string} projectName The analytics project id for which the counter should be taken.

lib/common/test/unit-tests/analytics-service.ts

-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ function createTestInjector(testScenario: ITestScenario): IInjector {
6262
getClientName: () => {
6363
return "UnitTests";
6464
},
65-
getPrivacyPolicyLink: () => {
66-
return "privacy policy link";
67-
},
6865
getUserId: () => {
6966
return Promise.resolve("UnitTestsUserId");
7067
},

lib/services/analytics-settings-service.ts

-4
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ class AnalyticsSettingsService implements IAnalyticsSettingsService {
4848
return "" + this.$staticConfig.CLIENT_NAME_ALIAS.cyan.bold;
4949
}
5050

51-
public getPrivacyPolicyLink(): string {
52-
return "http://www.telerik.com/company/privacy-policy";
53-
}
54-
5551
public async getUserSessionsCount(projectName: string): Promise<number> {
5652
const sessionsCountForProject = await this.$userSettingsService.getSettingValue<
5753
number

lib/services/analytics/analytics-service.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,7 @@ export class AnalyticsService implements IAnalyticsService, IDisposable {
6969
)) &&
7070
isInteractive()
7171
) {
72-
this.$logger.info(
73-
"Do you want to help us improve " +
74-
this.$analyticsSettingsService.getClientName() +
75-
" by automatically sending anonymous usage statistics? We will not use this information to identify or contact you." +
76-
" You can read our official Privacy Policy at"
77-
);
78-
79-
const message = this.$analyticsSettingsService.getPrivacyPolicyLink();
72+
const message = `Do you want to help us improve ${this.$analyticsSettingsService.getClientName()} by automatically sending anonymous usage statistics? We will not use this information to identify or contact you.`;
8073
trackFeatureUsage = await this.$prompter.confirm(message, () => true);
8174
await this.setStatus(
8275
this.$staticConfig.TRACK_FEATURE_USAGE_SETTING_NAME,

0 commit comments

Comments
 (0)