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

Unified Diff: components/browser_watcher/stability_paths.h

Issue 2910003002: Stability instrumentation: metrics for collection on crash (Closed)
Patch Set: Address comment Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/browser_watcher/stability_paths.h
diff --git a/components/browser_watcher/stability_paths.h b/components/browser_watcher/stability_paths.h
index 07216f1f75cb4a241b2b06d67bf8ccd9fc7cab00..53f2daa1133c1a712491ef4ef9640d73b5415aa8 100644
--- a/components/browser_watcher/stability_paths.h
+++ b/components/browser_watcher/stability_paths.h
@@ -35,8 +35,12 @@ bool GetStabilityFileForProcess(const base::Process& process,
// Returns a pattern that matches file names returned by GetFileForProcess.
base::FilePath::StringType GetStabilityFilePattern();
-// Marks the stability file for deletion.
-void MarkStabilityFileForDeletion(const base::FilePath& user_data_dir);
+// Marks the current process's stability file for deletion.
+void MarkOwnStabilityFileDeleted(const base::FilePath& user_data_dir);
+
+// Marks a stability file for deletion. Returns true if the persistent
+// allocator's state was set to deleted, false otherwise.
+bool MarkStabilityFileDeleted(const base::FilePath& file_path);
bcwhite 2017/05/31 15:41:19 Under what conditions would it fail?
manzagop (departed) 2017/05/31 19:57:23 No longer can! I've renamed the function and moved
#endif // defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698