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

Issue 2591123004: Document that HistoryBackend is sequence-affine, not thread-affine. (Closed)

Created:
4 years ago by fdoray
Modified:
4 years ago
Reviewers:
sdefresne
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Document that HistoryBackend is sequence-affine, not thread-affine. HistoryBackend methods must not be called concurrently and external synchronization is required between calls on different thread. However, the methods do not have to be called from a single thread. This CL documents this and adds DCHECKs to verify that HistoryBackend methods are called in sequence. BUG=675800, 675631 Committed: https://crrev.com/0b0b5aab6e2474e0e758ca3777b07321e59a7463 Cr-Commit-Position: refs/heads/master@{#440408}

Patch Set 1 #

Patch Set 2 : self-review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -9 lines) Patch
M components/browser_sync/profile_sync_service_typed_url_unittest.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M components/history/core/browser/history_backend.h View 1 4 chunks +10 lines, -9 lines 0 comments Download
M components/history/core/browser/history_backend.cc View 82 chunks +173 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 11 (5 generated)
fdoray
PTAL
4 years ago (2016-12-21 15:03:38 UTC) #2
sdefresne
lgtm
4 years ago (2016-12-22 13:10:36 UTC) #3
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/2591123004/20001
4 years ago (2016-12-22 13:21:12 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-22 14:09:46 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/0b0b5aab6e2474e0e758ca3777b07321e59a7463 Cr-Commit-Position: refs/heads/master@{#440408}
4 years ago (2016-12-22 14:13:21 UTC) #10
Peng
4 years ago (2016-12-22 16:54:10 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2599803002/ by penghuang@chromium.org.

The reason for reverting is:
https://uberchromegw.corp.google.com/i/chromium.chromiumos/builders/Linux%20C...

The CL causes the browser_tests failure on Linux ChromiumOS Tests(dbg) .

Powered by Google App Engine
This is Rietveld 408576698