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

Issue 1800743003: base: Remove some unnecessary const scoped_refptr<>&. (Closed)

Created:
4 years, 9 months ago by vmpstr
Modified:
4 years, 9 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, tfarina, gavinp+memory_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Remove some unnecessary const scoped_refptr<>&. This patch removes some unnecessary const scoped_refptr<>&. It replaces some instances with a copy of scoped_refptr, followed by a move. Other instances, it passes a raw non-owning pointer. R=danakj BUG=589044 Committed: https://crrev.com/82b0c16d66f85881e084ae16ef366ee4e6f4cffc Cr-Commit-Position: refs/heads/master@{#382043}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -139 lines) Patch
M base/deferred_sequenced_task_runner.h View 1 chunk +1 line, -1 line 0 comments Download
M base/deferred_sequenced_task_runner.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M base/files/important_file_writer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M base/files/important_file_writer.cc View 1 chunk +6 lines, -7 lines 0 comments Download
M base/memory/ref_counted_delete_on_message_loop.h View 2 chunks +4 lines, -6 lines 0 comments Download
M base/test/sequenced_task_runner_test_template.h View 9 chunks +28 lines, -32 lines 0 comments Download
M base/test/sequenced_task_runner_test_template.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M base/test/task_runner_test_template.h View 1 chunk +2 lines, -3 lines 0 comments Download
M base/test/task_runner_test_template.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M base/thread_task_runner_handle.h View 1 chunk +1 line, -1 line 0 comments Download
M base/thread_task_runner_handle.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M base/threading/sequenced_worker_pool.cc View 6 chunks +10 lines, -13 lines 0 comments Download
M base/threading/sequenced_worker_pool_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M base/trace_event/memory_dump_manager.h View 4 chunks +15 lines, -18 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 3 chunks +14 lines, -14 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 chunk +10 lines, -23 lines 3 comments Download
M base/trace_event/process_memory_dump.h View 1 chunk +1 line, -1 line 0 comments Download
M base/trace_event/process_memory_dump.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
vmpstr
Please take a look.
4 years, 9 months ago (2016-03-14 23:42:40 UTC) #1
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1800743003/diff/1/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/1800743003/diff/1/base/trace_event/memory_dump_manager_unittest.cc#newcode73 base/trace_event/memory_dump_manager_unittest.cc:73: const char* kMDPName = "TestDumpProvider"; Why are we re-duplicating ...
4 years, 9 months ago (2016-03-15 15:58:12 UTC) #3
danakj
LGTM % primiano https://codereview.chromium.org/1800743003/diff/1/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/1800743003/diff/1/base/trace_event/memory_dump_manager_unittest.cc#newcode74 base/trace_event/memory_dump_manager_unittest.cc:74: mdm->RegisterDumpProviderWithSequencedTaskRunner(mdp, kMDPName, task_runner, move the task ...
4 years, 9 months ago (2016-03-15 18:27:36 UTC) #4
vmpstr
https://codereview.chromium.org/1800743003/diff/1/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/1800743003/diff/1/base/trace_event/memory_dump_manager_unittest.cc#newcode73 base/trace_event/memory_dump_manager_unittest.cc:73: const char* kMDPName = "TestDumpProvider"; On 2016/03/15 15:58:11, Primiano ...
4 years, 9 months ago (2016-03-15 18:57:38 UTC) #5
vmpstr
On 2016/03/15 18:57:38, vmpstr wrote: > https://codereview.chromium.org/1800743003/diff/1/base/trace_event/memory_dump_manager_unittest.cc > File base/trace_event/memory_dump_manager_unittest.cc (right): > > https://codereview.chromium.org/1800743003/diff/1/base/trace_event/memory_dump_manager_unittest.cc#newcode73 > ...
4 years, 9 months ago (2016-03-17 21:30:22 UTC) #6
Primiano Tucci (use gerrit)
I have been very busy all the day and I will be traveling tomorrow and ...
4 years, 9 months ago (2016-03-18 00:17:06 UTC) #7
vmpstr
On 2016/03/18 00:17:06, Primiano wrote: > I have been very busy all the day and ...
4 years, 9 months ago (2016-03-18 00:21:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1800743003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1800743003/1
4 years, 9 months ago (2016-03-18 00:22:16 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/183083)
4 years, 9 months ago (2016-03-18 01:16:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1800743003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1800743003/1
4 years, 9 months ago (2016-03-18 18:16:28 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-18 19:17:37 UTC) #15
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 19:18:34 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/82b0c16d66f85881e084ae16ef366ee4e6f4cffc
Cr-Commit-Position: refs/heads/master@{#382043}

Powered by Google App Engine
This is Rietveld 408576698