summaryrefslogtreecommitdiffstats
path: root/components/breakpad
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-19 18:13:57 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-19 18:13:57 +0000
commit5e4cb0b0a67cb3ad33e86927c0d4e631905bf9d9 (patch)
tree88e99f6f6ab4523319d46a513e81656ba0edc081 /components/breakpad
parentb42ba23eb748ffb77206ba075b7c0fe56d938498 (diff)
downloadchromium_src-5e4cb0b0a67cb3ad33e86927c0d4e631905bf9d9.zip
chromium_src-5e4cb0b0a67cb3ad33e86927c0d4e631905bf9d9.tar.gz
chromium_src-5e4cb0b0a67cb3ad33e86927c0d4e631905bf9d9.tar.bz2
Move dependency on env_vars.h to breakpad client
BUG=247431 R=marja@chromium.org Review URL: https://chromiumcodereview.appspot.com/19697015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212603 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/breakpad')
-rw-r--r--components/breakpad/breakpad_client.cc14
-rw-r--r--components/breakpad/breakpad_client.h15
2 files changed, 29 insertions, 0 deletions
diff --git a/components/breakpad/breakpad_client.cc b/components/breakpad/breakpad_client.cc
index a069653..502884e 100644
--- a/components/breakpad/breakpad_client.cc
+++ b/components/breakpad/breakpad_client.cc
@@ -37,6 +37,16 @@ void BreakpadClient::GetProductNameAndVersion(const base::FilePath& exe_path,
base::string16* version,
base::string16* special_build) {
}
+
+bool BreakpadClient::ShouldShowRestartDialog(base::string16* title,
+ base::string16* message,
+ bool* is_rtl_locale) {
+ return false;
+}
+
+bool BreakpadClient::AboutToRestart() {
+ return true;
+}
#endif
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS)
@@ -58,4 +68,8 @@ size_t BreakpadClient::RegisterCrashKeys() {
return 0;
}
+bool BreakpadClient::IsRunningUnattended() {
+ return false;
+}
+
} // namespace breakpad
diff --git a/components/breakpad/breakpad_client.h b/components/breakpad/breakpad_client.h
index 9940a9a..12dccde 100644
--- a/components/breakpad/breakpad_client.h
+++ b/components/breakpad/breakpad_client.h
@@ -42,6 +42,18 @@ class BreakpadClient {
base::string16* product_name,
base::string16* version,
base::string16* special_build);
+
+ // 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
+ // the given title before restarting, and |is_rtl_locale| indicates whether
+ // to display the text as RTL.
+ virtual bool ShouldShowRestartDialog(base::string16* title,
+ base::string16* message,
+ bool* is_rtl_locale);
+
+ // Returns true if it is ok to restart the application. Invoked right before
+ // restarting after a crash.
+ virtual bool AboutToRestart();
#endif
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS)
@@ -64,6 +76,9 @@ class BreakpadClient {
// Register all of the potential crash keys that can be sent to the crash
// reporting server. Returns the size of the union of all keys.
virtual size_t RegisterCrashKeys();
+
+ // Returns true if running in unattended mode (for automated testing).
+ virtual bool IsRunningUnattended();
};
} // namespace breakpad