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

Issue 2676303002: Remove some unnecessary calls to TestingProfile::DestroyHistoryService (Closed)

Created:
3 years, 10 months ago by Marc Treib
Modified:
3 years, 10 months ago
Reviewers:
sky
CC:
chromium-reviews, grt+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove some unnecessary calls to TestingProfile::DestroyHistoryService Explicitly destroying the HistoryService may leave dependent services with dangling pointers, and is generally not required (it'll get destroyed during profile shutdown anyway). This also adds a warning to TestingProfile::CreateHistoryService and DestroyHistoryService, since they're generally not safe to use. BUG=689055 Review-Url: https://codereview.chromium.org/2676303002 Cr-Commit-Position: refs/heads/master@{#448574} Committed: https://chromium.googlesource.com/chromium/src/+/d8eebb4748e2c2bc2efe5bbcfd6a0d8fa0d0ddd4

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -8 lines) Patch
M chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/threat_details_unittest.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/toolbar/back_forward_menu_model_unittest.cc View 1 chunk +0 lines, -2 lines 1 comment Download
M chrome/test/base/testing_profile.h View 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
Marc Treib
PTAL, in particular at the comments I added in testing_profile.h. Some more context is on ...
3 years, 10 months ago (2017-02-06 17:11:27 UTC) #6
sky
LGTM
3 years, 10 months ago (2017-02-06 18:01:00 UTC) #7
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/2676303002/1
3 years, 10 months ago (2017-02-07 08:56:42 UTC) #9
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 09:01:33 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/d8eebb4748e2c2bc2efe5bbcfd6a...

Powered by Google App Engine
This is Rietveld 408576698