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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 2569953003: [bgmode] Log the unpin stack trace to Crash Keys (Closed)
Patch Set: Created 4 years 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 | « no previous file | chrome/common/crash_keys.h » ('j') | chrome/common/crash_keys.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index ace2dd1165390eff49e9720bffa9c943afbf6e5e..d307797a1eec0d06c27d6ce71abfd95c05b3698a 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -15,7 +15,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
-#include "base/debug/alias.h"
+#include "base/debug/crash_logging.h"
#include "base/debug/leak_annotations.h"
#include "base/files/file_path.h"
#include "base/location.h"
@@ -77,6 +77,7 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/crash_keys.h"
#include "chrome/common/extensions/chrome_extensions_client.h"
#include "chrome/common/extensions/extension_process_policy.h"
#include "chrome/common/features.h"
@@ -1314,10 +1315,8 @@ void BrowserProcessImpl::Pin() {
// CHECK(!IsShuttingDown());
if (IsShuttingDown()) {
- // Copy the stacktrace which released the final reference onto our stack so
- // it will be available in the crash report for inspection.
- base::debug::StackTrace callstack = release_last_reference_callstack_;
- base::debug::Alias(&callstack);
+ base::debug::SetCrashKeyToStackTrace(crash_keys::kBrowserUnpinTrace,
eroman 2016/12/14 20:40:24 Have you tested that this works? I am pretty sure
dgn 2016/12/16 19:10:42 Thanks! Sadly we don't have a reliable repro for t
+ release_last_reference_callstack_);
CHECK(false);
eroman 2016/12/14 20:40:24 I imagine there should be something like: // TODO
dgn 2016/12/16 19:10:42 Not sure if temporary... you added that almost 5 y
eroman 2016/12/16 19:28:16 Heh, nothing quite as durable as a "temporary" hac
}
}
« no previous file with comments | « no previous file | chrome/common/crash_keys.h » ('j') | chrome/common/crash_keys.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698