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

Issue 2966283002: Remove the file thread dependency from FileNetLogObserver. (Closed)

Created:
3 years, 5 months ago by eroman
Modified:
3 years, 5 months ago
Reviewers:
mef, mmenke
CC:
chromium-reviews, net-reviews_chromium.org, cbentzel+watch_chromium.org, bnc+watch_chromium.org, eroman
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove the file thread dependency from FileNetLogObserver. Instead use an internally created sequenced task runer. BUG=689520 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2966283002 Cr-Commit-Position: refs/heads/master@{#485105} Committed: https://chromium.googlesource.com/chromium/src/+/fc4bcbaa15506e2bebffddc2ad89cb0f6bfe20c5

Patch Set 1 #

Patch Set 2 : fix cronet #

Patch Set 3 : moar #

Patch Set 4 : blah #

Patch Set 5 : more comment #

Patch Set 6 : fix spelling #

Patch Set 7 : fix components unittests #

Patch Set 8 : remove messageloop #

Patch Set 9 : fix tests #

Patch Set 10 : init TaskScheduler on cronet #

Total comments: 3

Patch Set 11 : remove cronet changes (moving to separate CL) #

Total comments: 2

Patch Set 12 : undo const-ref changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -103 lines) Patch
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M components/net_log/net_export_file_writer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M components/net_log/net_export_file_writer_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -4 lines 0 comments Download
M net/log/file_net_log_observer.h View 1 2 3 4 5 6 7 8 9 5 chunks +18 lines, -29 lines 0 comments Download
M net/log/file_net_log_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 15 chunks +63 lines, -45 lines 0 comments Download
M net/log/file_net_log_observer_unittest.cc View 1 2 3 4 5 6 7 8 10 chunks +23 lines, -19 lines 0 comments Download

Messages

Total messages: 49 (34 generated)
eroman
3 years, 5 months ago (2017-07-06 01:00:52 UTC) #25
mmenke
Just a quick response, haven't thought about other options. https://codereview.chromium.org/2966283002/diff/170001/components/cronet/android/cronet_library_loader.cc File components/cronet/android/cronet_library_loader.cc (right): https://codereview.chromium.org/2966283002/diff/170001/components/cronet/android/cronet_library_loader.cc#newcode71 components/cronet/android/cronet_library_loader.cc:71: ...
3 years, 5 months ago (2017-07-06 01:50:01 UTC) #26
mmenke
https://codereview.chromium.org/2966283002/diff/170001/components/cronet/android/cronet_library_loader.cc File components/cronet/android/cronet_library_loader.cc (right): https://codereview.chromium.org/2966283002/diff/170001/components/cronet/android/cronet_library_loader.cc#newcode71 components/cronet/android/cronet_library_loader.cc:71: base::TaskScheduler::CreateAndStartWithDefaultParams("Cronet"); On 2017/07/06 01:50:01, mmenke wrote: > I don't ...
3 years, 5 months ago (2017-07-06 15:22:26 UTC) #27
eroman
+mef for cronet quesiton. Note that cronet is already using the TaskScheduler (on iOS): https://cs.chromium.org/chromium/src/components/cronet/ios/cronet_environment.mm?l=121 ...
3 years, 5 months ago (2017-07-06 17:05:46 UTC) #29
mef
https://codereview.chromium.org/2966283002/diff/170001/components/cronet/android/cronet_library_loader.cc File components/cronet/android/cronet_library_loader.cc (right): https://codereview.chromium.org/2966283002/diff/170001/components/cronet/android/cronet_library_loader.cc#newcode71 components/cronet/android/cronet_library_loader.cc:71: base::TaskScheduler::CreateAndStartWithDefaultParams("Cronet"); On 2017/07/06 15:22:26, mmenke wrote: > On 2017/07/06 ...
3 years, 5 months ago (2017-07-06 19:53:01 UTC) #30
eroman
Thanks for the feedback. I have removed the cronet initialization of TaskScheduler from this CL, ...
3 years, 5 months ago (2017-07-06 22:01:38 UTC) #31
mmenke
LGTM https://codereview.chromium.org/2966283002/diff/190001/net/log/file_net_log_observer.cc File net/log/file_net_log_observer.cc (right): https://codereview.chromium.org/2966283002/diff/190001/net/log/file_net_log_observer.cc#newcode160 net/log/file_net_log_observer.cc:160: const scoped_refptr<base::SequencedTaskRunner>& task_runner); I think scoped_refptr<base::SequencedTaskRunner> + std::move ...
3 years, 5 months ago (2017-07-07 15:32:59 UTC) #32
eroman
https://codereview.chromium.org/2966283002/diff/190001/net/log/file_net_log_observer.cc File net/log/file_net_log_observer.cc (right): https://codereview.chromium.org/2966283002/diff/190001/net/log/file_net_log_observer.cc#newcode160 net/log/file_net_log_observer.cc:160: const scoped_refptr<base::SequencedTaskRunner>& task_runner); On 2017/07/07 15:32:59, mmenke wrote: > ...
3 years, 5 months ago (2017-07-07 21:03:08 UTC) #33
mmenke
On 2017/07/07 21:03:08, eroman wrote: > https://codereview.chromium.org/2966283002/diff/190001/net/log/file_net_log_observer.cc > File net/log/file_net_log_observer.cc (right): > > https://codereview.chromium.org/2966283002/diff/190001/net/log/file_net_log_observer.cc#newcode160 > ...
3 years, 5 months ago (2017-07-07 21:05:22 UTC) #34
mmenke
On 2017/07/07 21:05:22, mmenke wrote: > On 2017/07/07 21:03:08, eroman wrote: > > > https://codereview.chromium.org/2966283002/diff/190001/net/log/file_net_log_observer.cc ...
3 years, 5 months ago (2017-07-07 21:06:12 UTC) #35
eroman
Done. Thanks for the links. On Fri, Jul 7, 2017 at 2:06 PM, <mmenke@chromium.org> wrote: ...
3 years, 5 months ago (2017-07-07 21:20:35 UTC) #37
mef
lgtm
3 years, 5 months ago (2017-07-07 21:21:38 UTC) #42
mmenke
On 2017/07/07 21:20:35, eroman wrote: > Done. Thanks for the links. No problem, still LGTM!
3 years, 5 months ago (2017-07-07 21:22:13 UTC) #43
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/2966283002/210001
3 years, 5 months ago (2017-07-07 22:05:36 UTC) #46
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 23:48:56 UTC) #49
Message was sent while issue was closed.
Committed patchset #12 (id:210001) as
https://chromium.googlesource.com/chromium/src/+/fc4bcbaa15506e2bebffddc2ad89...

Powered by Google App Engine
This is Rietveld 408576698