Index: chrome/installer/util/google_chrome_distribution.cc |
diff --git a/chrome/installer/util/google_chrome_distribution.cc b/chrome/installer/util/google_chrome_distribution.cc |
index 49490d42a2e5f5dba894d6dc8f586c88fe98f9e8..2b8d6bafc1b1a33aa68b1ab5f099bed7387e4406 100644 |
--- a/chrome/installer/util/google_chrome_distribution.cc |
+++ b/chrome/installer/util/google_chrome_distribution.cc |
@@ -20,6 +20,7 @@ |
#include "base/win/scoped_comptr.h" |
#include "base/win/windows_version.h" |
#include "chrome/common/chrome_icon_resources_win.h" |
+#include "chrome/common/chrome_paths_internal.h" |
#include "chrome/installer/util/app_registration_data.h" |
#include "chrome/installer/util/channel_info.h" |
#include "chrome/installer/util/google_update_constants.h" |
@@ -32,6 +33,8 @@ |
#include "chrome/installer/util/updating_app_registration_data.h" |
#include "chrome/installer/util/util_constants.h" |
#include "chrome/installer/util/wmi.h" |
+#include "third_party/crashpad/crashpad/client/crash_report_database.h" |
+#include "third_party/crashpad/crashpad/client/settings.h" |
namespace { |
@@ -244,6 +247,16 @@ base::string16 GoogleChromeDistribution::GetDistributionData(HKEY root_key) { |
result.append(L"="); |
result.append(ap_value); |
+ // Crash client id. |
+ base::FilePath crash_dir; |
+ if (chrome::GetDefaultCrashDumpLocation(&crash_dir)) { |
+ crashpad::UUID client_id; |
+ scoped_ptr<crashpad::CrashReportDatabase> database( |
+ crashpad::CrashReportDatabase::InitializeWithoutCreating(crash_dir)); |
+ if (database && database->GetSettings()->GetClientID(&client_id)) |
+ result.append(L"&crash_client_id=").append(client_id.ToString16()); |
+ } |
+ |
return result; |
} |