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(); |