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

Unified Diff: components/browser_watcher/stability_debugging.h

Issue 2531123002: Record MetricsService's execution phase to the stability file (Closed)
Patch Set: fix issue with incorrect kStabilityExecutionPhase Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: components/browser_watcher/stability_debugging.h
diff --git a/components/browser_watcher/stability_debugging_win.h b/components/browser_watcher/stability_debugging.h
similarity index 71%
rename from components/browser_watcher/stability_debugging_win.h
rename to components/browser_watcher/stability_debugging.h
index 3ac14be048bbcb1decd34205859f3615e3b60777..e8569417482c1c29443ceda4725fe09a3a8ac66d 100644
--- a/components/browser_watcher/stability_debugging_win.h
+++ b/components/browser_watcher/stability_debugging.h
@@ -2,15 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_WIN_H_
-#define COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_WIN_H_
+#ifndef COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_H_
+#define COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_H_
+
+#include <stdint.h>
#include "base/files/file_path.h"
#include "base/gtest_prod_util.h"
#include "base/process/process.h"
+#include "base/strings/string_piece.h"
namespace browser_watcher {
+#if defined(OS_WIN)
+
// Returns the the stability debugging directory.
base::FilePath GetStabilityDir(const base::FilePath& user_data_dir);
@@ -26,6 +31,11 @@ base::FilePath::StringType GetStabilityFilePattern();
// Marks the stability file for deletion.
void MarkStabilityFileForDeletion(const base::FilePath& user_data_dir);
+#endif // defined(OS_WIN)
+
+// Adds or updates the global stability user data.
+void SetStabilityDataInt(base::StringPiece name, int64_t value);
+
} // namespace browser_watcher
-#endif // COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_WIN_H_
+#endif // COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_H_
« no previous file with comments | « components/browser_watcher/stability_data_names.cc ('k') | components/browser_watcher/stability_debugging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698