Skip to content

Commit

Permalink
Merge pull request microsoft#1779 from brianrob/dev/brianrob/privacy-…
Browse files Browse the repository at this point in the history
…policy

Add a Link to the Microsoft Privacy Policy
  • Loading branch information
brianrob authored Jan 9, 2023
2 parents 1cdb421 + ebc9842 commit 1d2b165
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/PerfView/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
<MenuItem Header="Viewing External Data" Command="{x:Static src:MainWindow.UsersGuideCommand}" CommandParameter="ViewingExternalData"/>
<MenuItem Header="Using EventSources" Command="{x:Static src:MainWindow.UsersGuideCommand}" CommandParameter="UsingEventSources"/>
<MenuItem Header="_Release Notes" Click="DoReleaseNotes"/>
<MenuItem Header="Privacy Policy" Click="DoPrivacyPolicy" />
<MenuItem Header="_About" Click="DoAbout"/>
</MenuItem>
</Menu>
Expand Down
6 changes: 6 additions & 0 deletions src/PerfView/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2029,6 +2029,12 @@ private void DoFocusDirectory(object sender, RoutedEventArgs e)
Directory.Focus();
}

private void DoPrivacyPolicy(object sender, RoutedEventArgs e)
{
StatusBar.Log("Displaying the privacy policy.");
Process.Start("https://privacy.microsoft.com/en-us/privacystatement");
}

private void UpdateFileFilter()
{
var filterText = FileFilterTextBox.Text;
Expand Down

0 comments on commit 1d2b165

Please sign in to comment.