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

Issue 897113003: Fix crash when affiliated invalidation service becomes available (Closed)

Created:
5 years, 10 months ago by bartfab (slow)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash when affiliated invalidation service becomes available When an affiliated per-profile invalidation service becomes available, the AffiliatedInvalidationServiceProviderImpl should: 1) tell consumers to stop using the device-global invalidation service 2) destroy the device-global invalidation service These two steps were swapped, causing a crash as the consumers did not get a chance to remove their handlers from the device-global invalidation service before it is destroyed. BUG=455504 TEST=Extended unit test to protect against regressions Committed: https://crrev.com/b8fc9d2f40acbfc24ce00a6e139b61c6e6b0740e Cr-Commit-Position: refs/heads/master@{#314833}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments. #

Patch Set 3 : Fix compilation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -121 lines) Patch
M chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl.cc View 1 chunk +9 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl_unittest.cc View 1 2 31 chunks +114 lines, -115 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
bartfab (slow)
Hi Philipp, Could you take a look?
5 years, 10 months ago (2015-02-05 11:07:41 UTC) #2
pneubeck (no reviews)
lgtm https://codereview.chromium.org/897113003/diff/1/chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl_unittest.cc File chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl_unittest.cc (right): https://codereview.chromium.org/897113003/diff/1/chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl_unittest.cc#newcode75 chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl_unittest.cc:75: int invalidation_service_set_count_; you can use static initializers here: ...
5 years, 10 months ago (2015-02-05 12:39:05 UTC) #3
bartfab (slow)
https://codereview.chromium.org/897113003/diff/1/chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl_unittest.cc File chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl_unittest.cc (right): https://codereview.chromium.org/897113003/diff/1/chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl_unittest.cc#newcode75 chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl_unittest.cc:75: int invalidation_service_set_count_; On 2015/02/05 12:39:05, pneubeck wrote: > you ...
5 years, 10 months ago (2015-02-05 15:15:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/897113003/20001
5 years, 10 months ago (2015-02-05 15:18:00 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/21912)
5 years, 10 months ago (2015-02-05 15:58:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/897113003/40001
5 years, 10 months ago (2015-02-05 17:30:20 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-05 17:54:43 UTC) #12
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 17:55:38 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b8fc9d2f40acbfc24ce00a6e139b61c6e6b0740e
Cr-Commit-Position: refs/heads/master@{#314833}

Powered by Google App Engine
This is Rietveld 408576698