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

Unified Diff: content/browser/plugin_process_host.cc

Issue 25555006: Collect more data to send in crash reports for a crasher that's stumping me. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 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 | « content/browser/plugin_process_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_process_host.cc
===================================================================
--- content/browser/plugin_process_host.cc (revision 226243)
+++ content/browser/plugin_process_host.cc (working copy)
@@ -19,6 +19,7 @@
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/path_service.h"
+#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "content/browser/browser_child_process_host_impl.h"
@@ -416,12 +417,31 @@
void PluginProcessHost::OnChannelDestroyed(int renderer_id) {
resource_context_map_.erase(renderer_id);
+ removed_pids_.insert(renderer_id);
}
void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request,
ResourceContext** resource_context,
net::URLRequestContext** request_context) {
*resource_context = resource_context_map_[request.origin_pid];
+ if (!*resource_context) {
+ std::string url = request.first_party_for_cookies.spec();
+ // Debugging http://crbug.com/302530
+ url += std::string("_") + base::IntToString(request.origin_pid);
+
+ for (std::map<int, ResourceContext*>::iterator i =
+ resource_context_map_.begin();
+ i != resource_context_map_.end(); ++i) {
+ url += std::string("_") + base::IntToString(i->first);
+ }
+
+ url += "_";
+ for (std::set<int>::iterator i = removed_pids_.begin();
+ i != removed_pids_.end(); ++i) {
brettw 2013/10/02 04:01:32 Undent 1 space :)
+ url += std::string("_") + base::IntToString(*i);
+ }
+ GetContentClient()->SetActiveURL(GURL(url));
+ }
*request_context = (*resource_context)->GetRequestContext();
}
« no previous file with comments | « content/browser/plugin_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698