summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-23 16:15:23 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-23 16:15:23 +0000
commit9e61109570726a1f63e73fc4a3484ea30b18336d (patch)
tree1806c55bb5e979259fe9f77815a4d006d7a7224a /components
parent396df70ceaf0fcc1c0c53a10098dd7d9f8158553 (diff)
downloadchromium_src-9e61109570726a1f63e73fc4a3484ea30b18336d.zip
chromium_src-9e61109570726a1f63e73fc4a3484ea30b18336d.tar.gz
chromium_src-9e61109570726a1f63e73fc4a3484ea30b18336d.tar.bz2
Move dependencies from breakpad to chrome/installer behind BreakpadClient
BUG=247431 R=marja@chromium.org NOTRY=true Review URL: https://chromiumcodereview.appspot.com/19996004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213135 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components')
-rw-r--r--components/breakpad/breakpad_client.cc25
-rw-r--r--components/breakpad/breakpad_client.h20
2 files changed, 43 insertions, 2 deletions
diff --git a/components/breakpad/breakpad_client.cc b/components/breakpad/breakpad_client.cc
index 043e645..ecfe166 100644
--- a/components/breakpad/breakpad_client.cc
+++ b/components/breakpad/breakpad_client.cc
@@ -36,7 +36,8 @@ bool BreakpadClient::GetAlternativeCrashDumpLocation(
void BreakpadClient::GetProductNameAndVersion(const base::FilePath& exe_path,
base::string16* product_name,
base::string16* version,
- base::string16* special_build) {
+ base::string16* special_build,
+ base::string16* channel_name) {
}
bool BreakpadClient::ShouldShowRestartDialog(base::string16* title,
@@ -48,6 +49,22 @@ bool BreakpadClient::ShouldShowRestartDialog(base::string16* title,
bool BreakpadClient::AboutToRestart() {
return true;
}
+
+base::string16 BreakpadClient::GetCrashGUID() {
+ return base::string16();
+}
+
+bool BreakpadClient::GetDeferredUploadsSupported(bool is_per_usr_install) {
+ return false;
+}
+
+bool BreakpadClient::GetIsPerUserInstall(const base::FilePath& exe_path) {
+ return false;
+}
+
+bool BreakpadClient::GetShouldDumpLargerDumps(bool is_per_user_install) {
+ return false;
+}
#endif
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS)
@@ -77,4 +94,10 @@ bool BreakpadClient::IsRunningUnattended() {
return false;
}
+#if defined(OS_WIN) || defined(OS_MACOSX)
+bool BreakpadClient::GetCollectStatsConsent() {
+ return false;
+}
+#endif
+
} // namespace breakpad
diff --git a/components/breakpad/breakpad_client.h b/components/breakpad/breakpad_client.h
index 9cea305..b678dcf 100644
--- a/components/breakpad/breakpad_client.h
+++ b/components/breakpad/breakpad_client.h
@@ -41,7 +41,8 @@ class BreakpadClient {
virtual void GetProductNameAndVersion(const base::FilePath& exe_path,
base::string16* product_name,
base::string16* version,
- base::string16* special_build);
+ base::string16* special_build,
+ base::string16* channel_name);
// Returns true if a restart dialog should be displayed. In that case,
// |message| and |title| are set to a message to display in a dialog box with
@@ -54,6 +55,18 @@ class BreakpadClient {
// Returns true if it is ok to restart the application. Invoked right before
// 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);
+
+ // Returns true if the running binary is a per-user installation.
+ virtual bool GetIsPerUserInstall(const base::FilePath& exe_path);
+
+ // Returns true if larger crash dumps should be dumped.
+ virtual bool GetShouldDumpLargerDumps(bool is_per_user_install);
#endif
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS)
@@ -81,6 +94,11 @@ class BreakpadClient {
// Returns true if running in unattended mode (for automated testing).
virtual bool IsRunningUnattended();
+
+#if defined(OS_WIN) || defined(OS_MACOSX)
+ // Returns true if the user has given consent to collect stats.
+ virtual bool GetCollectStatsConsent();
+#endif
};
} // namespace breakpad