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

Unified Diff: chrome/common/child_process_logging_win.cc

Issue 149305: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/child_process_logging_mac_unittest.mm ('k') | chrome/common/plugin_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/child_process_logging_win.cc
===================================================================
--- chrome/common/child_process_logging_win.cc (revision 20096)
+++ chrome/common/child_process_logging_win.cc (working copy)
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/renderer/renderer_logging.h"
+#include "chrome/common/child_process_logging.h"
#include <windows.h>
@@ -10,24 +10,22 @@
#include "chrome/common/chrome_constants.h"
#include "googleurl/src/gurl.h"
-namespace renderer_logging {
+namespace child_process_logging {
-typedef void (__cdecl *MainSetActiveRendererURL)(const wchar_t*);
+typedef void (__cdecl *MainSetActiveURL)(const wchar_t*);
-// Sets the URL that is logged if the renderer crashes. Use GURL() to clear
-// the URL.
-void SetActiveRendererURL(const GURL& url) {
+void SetActiveURL(const GURL& url) {
HMODULE exe_module = GetModuleHandle(chrome::kBrowserProcessExecutableName);
if (!exe_module)
return;
- MainSetActiveRendererURL set_active_renderer_url =
- reinterpret_cast<MainSetActiveRendererURL>(
- GetProcAddress(exe_module, "SetActiveRendererURL"));
- if (!set_active_renderer_url)
+ MainSetActiveURL set_active_url =
+ reinterpret_cast<MainSetActiveURL>(
+ GetProcAddress(exe_module, "SetActiveURL"));
+ if (!set_active_url)
return;
- (set_active_renderer_url)(UTF8ToWide(url.possibly_invalid_spec()).c_str());
+ (set_active_url)(UTF8ToWide(url.possibly_invalid_spec()).c_str());
}
-} // namespace renderer_logging
+} // namespace child_process_logging
« no previous file with comments | « chrome/common/child_process_logging_mac_unittest.mm ('k') | chrome/common/plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698