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

Unified Diff: chrome_frame/utils.cc

Issue 12521002: Start and stop crash reporting outside of the loader lock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert r70898 Created 7 years, 9 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
« chrome_frame/utils.h ('K') | « chrome_frame/utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/utils.cc
diff --git a/chrome_frame/utils.cc b/chrome_frame/utils.cc
index 70abb329b103534653c53eb8718f6e6415226aeb..b1ac023734c97de851433baa059a9a536c6dc3cf 100644
--- a/chrome_frame/utils.cc
+++ b/chrome_frame/utils.cc
@@ -1499,6 +1499,12 @@ bool CanNavigate(const GURL& url,
return true;
}
+static PinModuleCallbackFn g_pin_module_callback = NULL;
+
+void SetPinModuleCallback(PinModuleCallbackFn callback) {
+ g_pin_module_callback = callback;
+}
+
void PinModule() {
static bool s_pinned = false;
if (!s_pinned && !IsUnpinnedMode()) {
@@ -1513,6 +1519,8 @@ void PinModule() {
DPLOG(FATAL) << "Failed to pin module " << system_buffer;
} else {
s_pinned = true;
+ if (g_pin_module_callback)
+ g_pin_module_callback();
}
} else {
DPLOG(FATAL) << "Could not get module path.";
« chrome_frame/utils.h ('K') | « chrome_frame/utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698