Index: client/crash_report_database_win.cc |
diff --git a/client/crash_report_database_win.cc b/client/crash_report_database_win.cc |
index 6dbaf0ea7b696c52eddf08c40013f6ddf3ef04a1..894f922625dc4ea544f43aa0abd445fb7f5d2ae7 100644 |
--- a/client/crash_report_database_win.cc |
+++ b/client/crash_report_database_win.cc |
@@ -14,7 +14,6 @@ |
#include "client/crash_report_database.h" |
-#include <rpc.h> |
#include <string.h> |
#include <time.h> |
#include <windows.h> |
@@ -573,12 +572,9 @@ OperationStatus CrashReportDatabaseWin::PrepareNewCrashReport( |
NewReport** report) { |
INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
- ::UUID system_uuid; |
- if (UuidCreate(&system_uuid) != RPC_S_OK) |
- return kFileSystemError; |
- |
scoped_ptr<NewReport> new_report(new NewReport()); |
- new_report->uuid.InitializeFromSystemUUID(&system_uuid); |
+ if (!new_report->uuid.InitializeWithNew()) |
+ return kFileSystemError; |
new_report->path = base_dir_.Append(kReportsDirectory) |
.Append(new_report->uuid.ToString16() + L"." + |
kCrashReportFileExtension); |