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

Unified Diff: chrome/common/chrome_paths.cc

Issue 901673002: Instantiate a Kasko reporter inside the Chrome watcher process, when SyzyASAN instrumented. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ship_kasko
Patch Set: Fix a runtime error. Created 5 years, 10 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: chrome/common/chrome_paths.cc
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index af56236b4ed642995420578008df28d515b6605b..589a00cfc50b2b6f1c4ea654fa11f6d7e41f1bd0 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -217,6 +217,16 @@ bool PathProvider(int key, base::FilePath* result) {
cur = cur.Append(FILE_PATH_LITERAL("Crash Reports"));
create_dir = true;
break;
+#if defined(OS_WIN)
+ case chrome::DIR_WATCHER_DATA:
+ // The watcher data is always stored relative to the default user data
+ // directory. This allows the watcher to be initialized before
+ // command-line options have been parsed.
+ if (!GetDefaultUserDataDirectory(&cur))
+ return false;
+ cur = cur.Append(FILE_PATH_LITERAL("Diagnostics"));
+ break;
+#endif
case chrome::DIR_RESOURCES:
#if defined(OS_MACOSX)
cur = base::mac::FrameworkBundlePath();
« chrome/chrome_watcher/chrome_watcher_main.cc ('K') | « chrome/common/chrome_paths.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698