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

Issue 2939373003: Convert PpdCache and PpdProvider to TaskScheduler. (Closed)

Created:
3 years, 6 months ago by skau
Modified:
3 years, 6 months ago
Reviewers:
gab, Carlson
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert PpdCache and PpdProvider to TaskScheduler. Part of the larger Chromium migration away from BrowserThreads. BUG=734279, 667892 Review-Url: https://codereview.chromium.org/2939373003 Cr-Commit-Position: refs/heads/master@{#480963} Committed: https://chromium.googlesource.com/chromium/src/+/4fb6e69738018eda7b9d387934d35188dd46da17

Patch Set 1 #

Patch Set 2 : remove extra imports #

Total comments: 8

Patch Set 3 : comments addressed #

Patch Set 4 : rebase #

Total comments: 3

Patch Set 5 : find can skip dir creation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -212 lines) Patch
M chrome/browser/chromeos/printing/ppd_provider_factory.cc View 1 2 2 chunks +2 lines, -10 lines 0 comments Download
M chromeos/printing/ppd_cache.h View 1 2 3 chunks +2 lines, -9 lines 0 comments Download
M chromeos/printing/ppd_cache.cc View 1 2 3 4 3 chunks +103 lines, -117 lines 0 comments Download
M chromeos/printing/ppd_cache_unittest.cc View 1 2 8 chunks +14 lines, -9 lines 0 comments Download
M chromeos/printing/ppd_provider.h View 1 2 3 chunks +0 lines, -6 lines 0 comments Download
M chromeos/printing/ppd_provider.cc View 1 2 8 chunks +34 lines, -21 lines 0 comments Download
M chromeos/printing/ppd_provider_unittest.cc View 1 2 20 chunks +28 lines, -40 lines 0 comments Download

Messages

Total messages: 31 (21 generated)
skau
justincarlson@: package OWNER gab@: Task stuff
3 years, 6 months ago (2017-06-17 01:04:35 UTC) #2
gab
Thanks :) https://codereview.chromium.org/2939373003/diff/20001/chrome/browser/chromeos/printing/ppd_provider_factory.cc File chrome/browser/chromeos/printing/ppd_provider_factory.cc (right): https://codereview.chromium.org/2939373003/diff/20001/chrome/browser/chromeos/printing/ppd_provider_factory.cc#newcode28 chrome/browser/chromeos/printing/ppd_provider_factory.cc:28: cache); inline |cache| here? (or at least ...
3 years, 6 months ago (2017-06-19 15:13:22 UTC) #7
skau
Revisions to fix the tests and some simplifications. PTAL. https://codereview.chromium.org/2939373003/diff/20001/chrome/browser/chromeos/printing/ppd_provider_factory.cc File chrome/browser/chromeos/printing/ppd_provider_factory.cc (right): https://codereview.chromium.org/2939373003/diff/20001/chrome/browser/chromeos/printing/ppd_provider_factory.cc#newcode28 chrome/browser/chromeos/printing/ppd_provider_factory.cc:28: ...
3 years, 6 months ago (2017-06-19 23:31:08 UTC) #10
Carlson
lgtm Generally looks like a really nice cleanup. Thanks for doing this! https://codereview.chromium.org/2939373003/diff/60001/chromeos/printing/ppd_cache.cc File chromeos/printing/ppd_cache.cc ...
3 years, 6 months ago (2017-06-20 18:57:33 UTC) #17
skau
Thanks for the suggestion! https://codereview.chromium.org/2939373003/diff/60001/chromeos/printing/ppd_cache.cc File chromeos/printing/ppd_cache.cc (right): https://codereview.chromium.org/2939373003/diff/60001/chromeos/printing/ppd_cache.cc#newcode55 chromeos/printing/ppd_cache.cc:55: MaybeCreateCache(cache_dir); On 2017/06/20 18:57:33, Carlson ...
3 years, 6 months ago (2017-06-20 20:23:10 UTC) #18
gab
Task API usage looks fine to me % comment below (yours to evaluate), haven't cross-checked ...
3 years, 6 months ago (2017-06-20 20:36:08 UTC) #21
skau
This won't happen in the current implementation. I don't overwrite files that have already been ...
3 years, 6 months ago (2017-06-20 21:10:24 UTC) #23
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/2939373003/80001
3 years, 6 months ago (2017-06-20 21:11:08 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/4fb6e69738018eda7b9d387934d35188dd46da17
3 years, 6 months ago (2017-06-20 21:28:12 UTC) #30
gab
3 years, 6 months ago (2017-06-20 21:40:10 UTC) #31
Message was sent while issue was closed.
On 2017/06/20 21:10:24, skau wrote:
> This won't happen in the current implementation.  I don't overwrite files that
> have already been stored.  There is a small possibility of a false cache miss,
> but that's not a situation that I'm concerned about.  Concurrent fetches of
the
> same file is not a use case that is currently relevant.

I see, probably worth documenting that in the code as it's an important
assumption for this threading model to be valid (i.e. so that someone doesn't
build on this further without while breaking this assumption).

Powered by Google App Engine
This is Rietveld 408576698