Index: chrome/common/chrome_paths.cc |
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc |
index 9537376b47f4e2e9a27908eb3342680cb287ed82..e4a0865f26a33faaf123dbae43df30ba2f162112 100644 |
--- a/chrome/common/chrome_paths.cc |
+++ b/chrome/common/chrome_paths.cc |
@@ -207,6 +207,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(); |