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

Side by Side Diff: chrome/renderer/renderer_logging_linux.cc

Issue 155238: Add the page url to plugin crashes to aid debugging. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/renderer_logging.h ('k') | chrome/renderer/renderer_logging_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/renderer/renderer_logging.h"
6
7 #include <string>
8
9 #include "base/logging.h"
10 #include "googleurl/src/gurl.h"
11
12 namespace renderer_logging {
13
14 // We use a static string to hold the most recent active url. If we crash, the
15 // crash handler code will send the contents of this string to the browser.
16 std::string active_url;
17
18 // Sets the URL that is logged if the renderer crashes. Use GURL() to clear
19 // the URL.
20 void SetActiveRendererURL(const GURL& url) {
21 active_url = url.possibly_invalid_spec();
22 }
23
24 } // namespace renderer_logging
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_logging.h ('k') | chrome/renderer/renderer_logging_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698