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

Side by Side Diff: chrome/installer/setup/installer_metrics.h

Issue 2335313002: Always persist histograms from setup.exe. (Closed)
Patch Set: rename files Created 4 years, 3 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 2016 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_INSTALLER_SETUP_INSTALLER_METRICS_H_
6 #define CHROME_INSTALLER_SETUP_INSTALLER_METRICS_H_
7
8 namespace base {
9 class FilePath;
10 } // namespace base
11
12 namespace installer {
13
14 // Returns the directory in which persistent histograms will be saved. The
15 // install process should create this when appropriate and remove it on
16 // uninstall/rollback. If this directory does not exist when End...Storage()
17 // is called then no histograms will be persisted on disk.
18 base::FilePath GetPersistentHistogramStorageDir(
19 const base::FilePath& target_dir);
20
21 // Creates a persistent space for any histograms that can be reported later
22 // by the browser process. It should be called as early as possible in the
23 // process lifetime and never called again.
24 void BeginPersistentHistogramStorage();
25
26 // Saves all the persistent histograms to a single file on disk for reading
27 // by the browser so it can be reported. It is generally called once during
28 // process exit. Multiple calls to this are possible if "snapshots" are
29 // desired; they are cumulative in what is saved, not just what has changed
30 // since the previous call. The |target_dir| is the install location of the
31 // browser.
32 void EndPersistentHistogramStorage(const base::FilePath& target_dir,
33 bool system_install);
34
35 } // namespace installer
36
37 #endif // CHROME_INSTALLER_SETUP_INSTALLER_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698