Index: components/crash/content/app/crash_reporter_client.h |
diff --git a/components/crash/content/app/crash_reporter_client.h b/components/crash/content/app/crash_reporter_client.h |
index 70f089cf9dfe93fc527f5bf565a6bc890157d32d..25ae505335864fd25cb3315d818fc27e976799af 100644 |
--- a/components/crash/content/app/crash_reporter_client.h |
+++ b/components/crash/content/app/crash_reporter_client.h |
@@ -121,13 +121,25 @@ class CrashReporterClient { |
#endif |
// The location where minidump files should be written. Returns true if |
- // |crash_dir| was set. |
+ // |crash_dir| was set. Windows has to use base::string16 because this code |
+ // needs to work in chrome_elf, where only kernel32.dll is allowed, and |
+ // base::FilePath and its dependencies pull in other DLLs. |
#if defined(OS_WIN) |
virtual bool GetCrashDumpLocation(base::string16* crash_dir); |
#else |
virtual bool GetCrashDumpLocation(base::FilePath* crash_dir); |
#endif |
+ // The location where metrics files should be written. Returns true if |
+ // |metrics_dir| was set. Windows has to use base::string16 because this code |
+ // needs to work in chrome_elf, where only kernel32.dll is allowed, and |
+ // base::FilePath and its dependencies pull in other DLLs. |
+#if defined(OS_WIN) |
+ virtual bool GetCrashMetricsLocation(base::string16* metrics_dir); |
+#else |
+ virtual bool GetCrashMetricsLocation(base::FilePath* metrics_dir); |
+#endif |
+ |
// Register all of the potential crash keys that can be sent to the crash |
// reporting server. Returns the size of the union of all keys. |
virtual size_t RegisterCrashKeys(); |