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

Unified Diff: chrome/renderer/renderer_logging_linux.cc

Issue 115526: Linux: Add Breakpad client. (Closed)
Patch Set: ... Created 11 years, 7 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
« no previous file with comments | « chrome/renderer/render_crash_handler_linux_stub.cc ('k') | chrome/renderer/renderer_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_logging_linux.cc
diff --git a/chrome/renderer/renderer_logging_linux.cc b/chrome/renderer/renderer_logging_linux.cc
index 9322db1c2d6ec239884cf609bfbc7eda9afe804f..7812da1fded5c4540c4a16b28a35979fe1293239 100644
--- a/chrome/renderer/renderer_logging_linux.cc
+++ b/chrome/renderer/renderer_logging_linux.cc
@@ -4,15 +4,21 @@
#include "chrome/renderer/renderer_logging.h"
+#include <string>
+
#include "base/logging.h"
#include "googleurl/src/gurl.h"
namespace renderer_logging {
+// We use a static string to hold the most recent active url. If we crash, the
+// crash handler code will send the contents of this string to the browser.
+std::string active_url;
+
// Sets the URL that is logged if the renderer crashes. Use GURL() to clear
// the URL.
void SetActiveRendererURL(const GURL& url) {
- // crbug.com/9646
+ active_url = url.possibly_invalid_spec();
}
} // namespace renderer_logging
« no previous file with comments | « chrome/renderer/render_crash_handler_linux_stub.cc ('k') | chrome/renderer/renderer_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698