Commit 6296552d authored by Collin Baker's avatar Collin Baker Committed by Commit Bot

Add CHECKs to diagnose GetProfileInfoCache() crash

Bug: 967603
Change-Id: I6f1df832c83f70d236d3acdec3a215e8ba0df514
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2033638Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Collin Baker <collinbaker@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738780}
parent bdaef947
......@@ -49,6 +49,7 @@
#include "chrome/browser/icon_manager.h"
#include "chrome/browser/intranet_redirect_detector.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/lifetime/browser_shutdown.h"
#include "chrome/browser/lifetime/switch_utils.h"
#include "chrome/browser/media/webrtc/webrtc_event_log_manager.h"
#include "chrome/browser/media/webrtc/webrtc_log_uploader.h"
......@@ -74,6 +75,7 @@
#include "chrome/browser/startup_data.h"
#include "chrome/browser/status_icons/status_tray.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/update_client/chrome_update_query_params_delegate.h"
#include "chrome/common/buildflags.h"
#include "chrome/common/channel_info.h"
......@@ -1416,6 +1418,9 @@ void BrowserProcessImpl::Unpin() {
std::move(quit_closure_).Run();
chrome::ShutdownIfNeeded();
// TODO(crbug.com/967603): remove when root cause is found.
CHECK_EQ(BrowserList::GetInstance()->size(), 0u);
#endif // !defined(OS_ANDROID)
}
......
......@@ -473,6 +473,10 @@ Browser::Browser(const CreateParams& params)
std::make_unique<extensions::ExtensionBrowserWindowHelper>(this))
#endif
{
// TODO(crbug.com/967603): remove when root cause is found.
CHECK(g_browser_process);
CHECK(!g_browser_process->IsShuttingDown());
// If this causes a crash then a window is being opened using a profile type
// that is disallowed by policy. The crash prevents the disabled window type
// from opening at all, but the path that triggered it should be fixed.
......
......@@ -469,6 +469,9 @@ void AccountReconcilor::StartReconcile() {
return;
}
// TODO(crbug.com/967603): remove when root cause is found.
CHECK(delegate_);
CHECK(client_);
if (!delegate_->IsReconcileEnabled() || !client_->AreSigninCookiesAllowed()) {
VLOG(1) << "AccountReconcilor::StartReconcile: !enabled or no cookies";
SetState(AccountReconcilorState::ACCOUNT_RECONCILOR_OK);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment