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

Unified Diff: client/crash_report_database_win.cc

Issue 999953002: Use LockFile/UnlockFile for Settings to port to Windows (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@lock-fileio-2
Patch Set: Tag inside, no info spam Created 5 years, 8 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
« no previous file with comments | « client/client_test.gyp ('k') | client/settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « client/client_test.gyp ('k') | client/settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698