Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(567)

Side by Side Diff: chrome/browser/conflicts/third_party_metrics_recorder_win.h

Issue 2854983002: Add the ThirdPartyModules.Uninstallable histogram. (Closed)
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CONFLICTS_THIRD_PARTY_METRICS_RECORDER_WIN_H_
6 #define CHROME_BROWSER_CONFLICTS_THIRD_PARTY_METRICS_RECORDER_WIN_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/conflicts/installed_programs_win.h"
10 #include "chrome/browser/conflicts/module_database_observer_win.h"
11
12 class ModuleDatabase;
13 struct ModuleInfoData;
14 struct ModuleInfoKey;
15
16 // Records metrics about third party modules loaded into Chrome.
17 class ThirdPartyMetricsRecorder : public ModuleDatabaseObserver {
18 public:
19 explicit ThirdPartyMetricsRecorder(ModuleDatabase* module_database);
20 ~ThirdPartyMetricsRecorder() override;
21
22 // ModuleDatabaseObserver:
23 void OnNewModuleFound(const ModuleInfoKey& module_key,
24 const ModuleInfoData& module_data) override;
25
26 private:
27 void OnInstalledProgramsInitialized(ModuleDatabase* module_database);
28
29 // Returns true if |module_data| is a third party module. Third party modules
30 // are defined as not being signed by Google or Microsoft.
31 bool IsThirdPartyModule(const ModuleInfoData& module_data);
32
33 InstalledPrograms installed_programs_;
34
35 DISALLOW_COPY_AND_ASSIGN(ThirdPartyMetricsRecorder);
36 };
37
38 #endif // CHROME_BROWSER_CONFLICTS_THIRD_PARTY_METRICS_RECORDER_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/conflicts/module_database_win.cc ('k') | chrome/browser/conflicts/third_party_metrics_recorder_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698