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

Unified Diff: chrome/installer/util/google_chrome_distribution.cc

Issue 1546673002: Add the crash client ID to the uninstall URL params. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN build fix Created 4 years, 11 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
« chrome/common/chrome_paths_win.cc ('K') | « chrome/installer/util/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« chrome/common/chrome_paths_win.cc ('K') | « chrome/installer/util/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698