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

Issue 1126963003: [components/storage_monitor] Use ThreadTaskRunnerHandle instead of LoopProxy (Closed)

Created:
5 years, 7 months ago by Pranay
Modified:
5 years, 7 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, anujsharma, vandebo (ex-Chrome), gbillock
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace MessageLoopProxy usage with ThreadTaskRunnerHandle in components/storage_monitor module. MessageLoopProxy is deprecated. This basically does a search and replace: MessageLoopProxy::current() -> ThreadTaskRunnerHandle::Get(). BUG=391045 Committed: https://crrev.com/7344e0bb8d8760931c2613607946ff1645968321 Cr-Commit-Position: refs/heads/master@{#330720}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fixed Review Comments #

Total comments: 2

Patch Set 3 : Fixed Review Comments 2 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M components/storage_monitor/storage_monitor_chromeos.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M components/storage_monitor/storage_monitor_linux.cc View 1 2 1 chunk +2 lines, -3 lines 2 comments Download
M components/storage_monitor/storage_monitor_linux_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 25 (8 generated)
Pranay
Hi, PTAL Thanks
5 years, 7 months ago (2015-05-06 11:14:45 UTC) #2
erikwright (departed)
On 2015/05/06 11:14:45, Pranay wrote: > Hi, > PTAL > > Thanks Please select a ...
5 years, 7 months ago (2015-05-11 18:29:11 UTC) #3
erikwright (departed)
https://codereview.chromium.org/1126963003/diff/1/components/storage_monitor/storage_monitor_chromeos.cc File components/storage_monitor/storage_monitor_chromeos.cc (right): https://codereview.chromium.org/1126963003/diff/1/components/storage_monitor/storage_monitor_chromeos.cc#newcode110 components/storage_monitor/storage_monitor_chromeos.cc:110: device::MediaTransferProtocolManager::Initialize(task_runner)); shouldn't this just be ...Initialize(scoped_refptr<base::SingleThreadTaskRunner>()) ? https://codereview.chromium.org/1126963003/diff/1/components/storage_monitor/storage_monitor_linux.cc File ...
5 years, 7 months ago (2015-05-11 18:29:18 UTC) #4
Pranay
https://codereview.chromium.org/1126963003/diff/1/components/storage_monitor/storage_monitor_chromeos.cc File components/storage_monitor/storage_monitor_chromeos.cc (right): https://codereview.chromium.org/1126963003/diff/1/components/storage_monitor/storage_monitor_chromeos.cc#newcode110 components/storage_monitor/storage_monitor_chromeos.cc:110: device::MediaTransferProtocolManager::Initialize(task_runner)); On 2015/05/11 18:29:18, erikwright wrote: > shouldn't this ...
5 years, 7 months ago (2015-05-12 03:19:48 UTC) #6
Pranay
PTAL Thanks
5 years, 7 months ago (2015-05-12 03:20:29 UTC) #8
Pranay
Since Vandebo is not part of Chrome now, adding Gbillock as reviewer. PTAL
5 years, 7 months ago (2015-05-14 10:34:36 UTC) #10
vandebo (ex-Chrome)
Sorry I missed this one, I usually redirect immediately. Lei can help you out or ...
5 years, 7 months ago (2015-05-14 14:13:18 UTC) #12
Pranay
Thanks Vandebo for your reply..
5 years, 7 months ago (2015-05-14 15:23:41 UTC) #13
Lei Zhang
https://codereview.chromium.org/1126963003/diff/20001/components/storage_monitor/storage_monitor_linux.cc File components/storage_monitor/storage_monitor_linux.cc (right): https://codereview.chromium.org/1126963003/diff/20001/components/storage_monitor/storage_monitor_linux.cc#newcode270 components/storage_monitor/storage_monitor_linux.cc:270: scoped_refptr<base::SingleThreadTaskRunner>())); Uh, this isn't right. Look closely.
5 years, 7 months ago (2015-05-14 18:54:38 UTC) #14
Pranay
Done https://codereview.chromium.org/1126963003/diff/1/components/storage_monitor/storage_monitor_linux.cc File components/storage_monitor/storage_monitor_linux.cc (right): https://codereview.chromium.org/1126963003/diff/1/components/storage_monitor/storage_monitor_linux.cc#newcode270 components/storage_monitor/storage_monitor_linux.cc:270: device::MediaTransferProtocolManager::Initialize(task_runner)); Sorry..earlier changes were incorrect. Fixed as pointed ...
5 years, 7 months ago (2015-05-15 03:44:05 UTC) #15
Lei Zhang
lgtm https://codereview.chromium.org/1126963003/diff/40001/components/storage_monitor/storage_monitor_linux.cc File components/storage_monitor/storage_monitor_linux.cc (right): https://codereview.chromium.org/1126963003/diff/40001/components/storage_monitor/storage_monitor_linux.cc#newcode268 components/storage_monitor/storage_monitor_linux.cc:268: BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE))); So this returns a MessageLoopProxy. What's the ...
5 years, 7 months ago (2015-05-15 05:03:34 UTC) #16
Pranay
Thanks for the LGTM, Lei. Since GetMessageLoopProxyForThread(ID) deals over "proxies" (scoped_refptr<base::MessageLoopProxy> proxies[BrowserThread::ID_COUNT]), so that implementation ...
5 years, 7 months ago (2015-05-15 11:11:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126963003/40001
5 years, 7 months ago (2015-05-15 11:12:03 UTC) #19
Pranay
https://codereview.chromium.org/1126963003/diff/40001/components/storage_monitor/storage_monitor_linux.cc File components/storage_monitor/storage_monitor_linux.cc (right): https://codereview.chromium.org/1126963003/diff/40001/components/storage_monitor/storage_monitor_linux.cc#newcode268 components/storage_monitor/storage_monitor_linux.cc:268: BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE))); On 2015/05/15 05:03:34, Lei Zhang wrote: > So ...
5 years, 7 months ago (2015-05-15 11:14:23 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126963003/40001
5 years, 7 months ago (2015-05-20 09:03:29 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-20 09:39:57 UTC) #24
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 09:40:45 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7344e0bb8d8760931c2613607946ff1645968321
Cr-Commit-Position: refs/heads/master@{#330720}

Powered by Google App Engine
This is Rietveld 408576698