summaryrefslogtreecommitdiffstats
path: root/components/breakpad
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-01 13:33:30 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-01 13:33:30 +0000
commit264c0acac963dcc09a154adc3235123b4e72b3e8 (patch)
treefc2f1ca41b46710989332aa4fd659ac55baf0f82 /components/breakpad
parentfe82cc346c10b4190376bc952854026a3dfe4f3e (diff)
downloadchromium_src-264c0acac963dcc09a154adc3235123b4e72b3e8.zip
chromium_src-264c0acac963dcc09a154adc3235123b4e72b3e8.tar.gz
chromium_src-264c0acac963dcc09a154adc3235123b4e72b3e8.tar.bz2
Set the client ID in crash reports via the crash key logging system.
BUG=77656 R=jochen@chromium.org Review URL: https://codereview.chromium.org/23602009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226222 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/breakpad')
-rw-r--r--components/breakpad/breakpad_client.cc7
-rw-r--r--components/breakpad/breakpad_client.h7
2 files changed, 7 insertions, 7 deletions
diff --git a/components/breakpad/breakpad_client.cc b/components/breakpad/breakpad_client.cc
index a4c8c45..c00b75f 100644
--- a/components/breakpad/breakpad_client.cc
+++ b/components/breakpad/breakpad_client.cc
@@ -27,6 +27,9 @@ BreakpadClient* GetBreakpadClient() {
BreakpadClient::BreakpadClient() {}
BreakpadClient::~BreakpadClient() {}
+void BreakpadClient::SetClientID(const std::string& client_id) {
+}
+
#if defined(OS_WIN)
bool BreakpadClient::GetAlternativeCrashDumpLocation(
base::FilePath* crash_dir) {
@@ -50,10 +53,6 @@ bool BreakpadClient::AboutToRestart() {
return true;
}
-base::string16 BreakpadClient::GetCrashGUID() {
- return base::string16();
-}
-
bool BreakpadClient::GetDeferredUploadsSupported(bool is_per_usr_install) {
return false;
}
diff --git a/components/breakpad/breakpad_client.h b/components/breakpad/breakpad_client.h
index 35b4308..61849af 100644
--- a/components/breakpad/breakpad_client.h
+++ b/components/breakpad/breakpad_client.h
@@ -42,6 +42,10 @@ class BreakpadClient {
BreakpadClient();
virtual ~BreakpadClient();
+ // Sets the Breakpad client ID, which is a unique identifier for the client
+ // that is sending crash reports. After it is set, it should not be changed.
+ virtual void SetClientID(const std::string& client_id);
+
#if defined(OS_WIN)
// Returns true if an alternative location to store the minidump files was
// specified. Returns true if |crash_dir| was set.
@@ -67,9 +71,6 @@ class BreakpadClient {
// restarting after a crash.
virtual bool AboutToRestart();
- // Returns a GUID to embed in the crash report.
- virtual base::string16 GetCrashGUID();
-
// Returns true if the crash report uploader supports deferred uploads.
virtual bool GetDeferredUploadsSupported(bool is_per_user_install);