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

Issue 2045833003: Fix HotwordServiceTest under ubsan: no more vcalls on garbage. (Closed)

Created:
4 years, 6 months ago by krasin
Modified:
4 years, 6 months ago
Reviewers:
kcarattini, Matt Giuca
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, rlp+watch_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix HotwordServiceTest under ubsan: no more vcalls on garbage. The problem was that some callbacks were set and they were called during ExtensionServiceTestBase destructor, at which point HotwordService was already deleted. This should fix UBSanVptr Linux buildbot failure: https://build.chromium.org/p/chromium.fyi/builders/UBSanVptr%20Linux/builds/431/steps/unit_tests BUG=617332

Patch Set 1 #

Patch Set 2 : fix two more test cases #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M chrome/browser/extensions/component_loader_unittest.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/search/hotword_service_unittest.cc View 4 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
krasin
4 years, 6 months ago (2016-06-07 00:58:21 UTC) #2

          

Powered by Google App Engine
This is Rietveld 408576698