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

Issue 2878233003: Add CHECK on session start for profile construction (Closed)

Created:
3 years, 7 months ago by emaxx
Modified:
3 years, 7 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/branch-heads/3071
Project:
chromium
Visibility:
Public.

Description

Add CHECK on session start for profile construction Fail fast from the profile construction when it's triggered without starting a session first. Crashing the browser is arguably a worth thing to do, as it prevents running the browser in unexpected environment (which may lead to, for instance, bypassing the managed policies). Also this CHECK should provide the stack traces which are more likely to point to the culprit code (as opposed to crashing at some later point asynchronously - like e.g. on the CHECK added at https://crrev.com/2801993002). BUG=719939 TEST=existing browser tests; manual tests: normal login; Guest login; restart-after-crash. Review-Url: https://codereview.chromium.org/2868043002 Cr-Original-Commit-Position: refs/heads/master@{#470524} Review-Url: https://codereview.chromium.org/2878233003 . Cr-Commit-Position: refs/branch-heads/3071@{#544} Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641} Committed: https://chromium.googlesource.com/chromium/src/+/4582fd82174a35a2cf098d6d9408a216d1f8b34b

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -10 lines) Patch
M chrome/browser/profiles/profile_impl.cc View 4 chunks +22 lines, -5 lines 0 comments Download
M components/session_manager/core/session_manager.h View 2 chunks +4 lines, -0 lines 0 comments Download
M components/session_manager/core/session_manager.cc View 2 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
emaxx
3 years, 7 months ago (2017-05-13 17:54:42 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
4582fd82174a35a2cf098d6d9408a216d1f8b34b.

Powered by Google App Engine
This is Rietveld 408576698