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

Issue 2531023002: Don't create profile in HttpsEngagementMetricsProvider (Closed)

Created:
4 years ago by gurrrik
Modified:
4 years ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, Steven Holte
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't create profile in HttpsEngagementMetricsProvider `ProfileManager::GetLastUsedProfile` creates a profile if it does not exist. `HttpsEngagementMetricsProvider::ProvideGeneralMetrics` can be called in `PostMainMessageLoopRun`, and it will try to create a profile, which is not what you'd want during shutdown. BUG= Committed: https://crrev.com/5fccf7ca2d9ce01847d0d6459db73636d537dce3 Cr-Commit-Position: refs/heads/master@{#434916}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M chrome/browser/metrics/https_engagement_metrics_provider.cc View 1 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
gurrrik
On 2016/11/25 11:34:56, gurrrik wrote: > mailto:gurrrik@yandex-team.ru changed reviewers: > + mailto:holte@chromium.org Please take a ...
4 years ago (2016-11-25 11:35:06 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/2531023002/diff/1/chrome/browser/metrics/https_engagement_metrics_provider.cc File chrome/browser/metrics/https_engagement_metrics_provider.cc (right): https://codereview.chromium.org/2531023002/diff/1/chrome/browser/metrics/https_engagement_metrics_provider.cc#newcode22 chrome/browser/metrics/https_engagement_metrics_provider.cc:22: Profile* profile = profile_manager->GetProfileByPath( Please add a comment about ...
4 years ago (2016-11-25 18:42:02 UTC) #5
gurrrik
On 2016/11/25 18:42:02, Alexei Svitkine (slow) wrote: > https://codereview.chromium.org/2531023002/diff/1/chrome/browser/metrics/https_engagement_metrics_provider.cc > File chrome/browser/metrics/https_engagement_metrics_provider.cc (right): > > ...
4 years ago (2016-11-28 08:11:35 UTC) #6
Alexei Svitkine (slow)
lgtm
4 years ago (2016-11-28 16:04:47 UTC) #7
Steven Holte
lgtm
4 years ago (2016-11-29 00:18:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2531023002/20001
4 years ago (2016-11-29 05:33:02 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-29 06:50:48 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/5fccf7ca2d9ce01847d0d6459db73636d537dce3 Cr-Commit-Position: refs/heads/master@{#434916}
4 years ago (2016-11-29 06:54:19 UTC) #16
meacer
On 2016/11/29 06:54:19, commit-bot: I haz the power wrote: > Patchset 2 (id:??) landed as ...
4 years ago (2016-12-21 19:56:31 UTC) #17
gurrrik
4 years ago (2016-12-22 07:51:30 UTC) #18
Message was sent while issue was closed.
On 2016/12/21 19:56:31, Mustafa Emre Acer wrote:
> On 2016/11/29 06:54:19, commit-bot: I haz the power wrote:
> > Patchset 2 (id:??) landed as
> > https://crrev.com/5fccf7ca2d9ce01847d0d6459db73636d537dce3
> > Cr-Commit-Position: refs/heads/master@{#434916}
> 
> Hi, I just ran into this CL while looking at https://crbug.com/671579. What
was
> the context of this change? Was it a crash?

Hi! Yes, it was a crash which was caused by this check:
https://chromium.googlesource.com/chromium/src/+/master/content/browser/rende...
An attempt to create `RenderProcessHostImpl` happened when creating a profile,
which in turn happened in
`HttpsEngagementMetricsProvider::ProvideGeneralMetrics` during browser shutdown.
Unfortunately I don't have access to the issue you mentioned, so I can't comment
on that.

Powered by Google App Engine
This is Rietveld 408576698