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

Issue 2958943002: Remove references to DB thread from unit test.

Created:
3 years, 5 months ago by benwells
Modified:
3 years, 5 months ago
Reviewers:
fdoray
CC:
chromium-reviews, tfarina, dominickn+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove references to DB thread from unit test. This removes references to the DB thread from the important sites usage counter unit test. BUG=689520

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M chrome/browser/engagement/important_sites_usage_counter_unittest.cc View 3 chunks +6 lines, -6 lines 1 comment Download

Messages

Total messages: 8 (5 generated)
benwells
am i holding it right?
3 years, 5 months ago (2017-06-27 05:59:37 UTC) #6
fdoray
A better fix would be to remove the |db_thread| argument from the constructor of QuotaManager ...
3 years, 5 months ago (2017-06-27 13:28:56 UTC) #7
benwells
3 years, 5 months ago (2017-07-07 06:22:16 UTC) #8
On 2017/06/27 13:28:56, fdoray (OOO until July 22) wrote:
> A better fix would be to remove the |db_thread| argument from the constructor
of
> QuotaManager and to initialize |db_thread_| with a SequencedTaskRunner
returned
> by CreateSequencedTaskRunnerWithTraits().

That probably should be left to the owners of QuotaManager. I'll assign this one
to whoever is doing storage_partition_impl.cc, which contains a reference to the
DB thread.

> 
> "the component that uses a TaskRunner should be the one that creates it"
>
https://chromium.googlesource.com/chromium/src/+/47642f05bc6abb99b8df5f3900e5...
> 
> Would you feel comfortable doing that change?
> 
>
https://codereview.chromium.org/2958943002/diff/1/chrome/browser/engagement/i...
> File chrome/browser/engagement/important_sites_usage_counter_unittest.cc
> (right):
> 
>
https://codereview.chromium.org/2958943002/diff/1/chrome/browser/engagement/i...
> chrome/browser/engagement/important_sites_usage_counter_unittest.cc:85:
> content::TestBrowserThreadBundle thread_bundle;
> Do not remove the trailing underscore.

Powered by Google App Engine
This is Rietveld 408576698