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

Issue 2572683004: mediaview: Introduce ArcDocumentsProviderRoot. (Closed)

Created:
4 years ago by Shuhei Takahashi
Modified:
4 years ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, tzik, hidehiko+watch_chromium.org, nhiroki, lhchavez+watch_chromium.org, oshima+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mediaview: Introduce ArcDocumentsProviderRoot. On file system operations, ArcDocumentsProviderAsyncFileUtil will look up a corresponding ArcDocumentsProviderRoot instance from ArcDocumentsProviderRootMap and delegates operations to it. ArcDocumentsProviderRootMap is owned by ArcDocumentsProviderBackendDelegate because the delegate will also use the root map to implement its methods soon. BUG=chromium:671511 TEST=unit_tests --gtest_filter='Arc*' TEST=trybot Committed: https://crrev.com/29942ba33818a9db2fc90a441b80d56cbdbc1f1f Cr-Commit-Position: refs/heads/master@{#439090}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Remove unused functions. #

Total comments: 19

Patch Set 4 : Addressed lhchavez's comments. #

Total comments: 22

Patch Set 5 : Addressed hashimoto's comments. #

Patch Set 6 : Removed WeakPtrFactory. #

Patch Set 7 : Assume cancel-on-delete contract. #

Patch Set 8 : Fix failing unit tests. #

Total comments: 10

Patch Set 9 : Addressed lhchavez's comments. #

Total comments: 4

Patch Set 10 : Address hashimoto's comment. #

Patch Set 11 : Constructors are called on the UI thread. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+458 lines, -13 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc View 1 2 3 4 5 6 7 8 9 3 chunks +30 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/arc/fileapi/arc_documents_provider_backend_delegate.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/fileapi/arc_documents_provider_backend_delegate.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/chromeos/arc/fileapi/arc_documents_provider_root.h View 1 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/fileapi/arc_documents_provider_root.cc View 1 9 10 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/fileapi/arc_documents_provider_root_map.h View 1 2 3 4 5 6 7 8 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/fileapi/arc_documents_provider_root_map.cc View 1 2 3 4 5 6 7 8 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.h View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc View 1 2 3 4 5 6 7 8 9 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util_unittest.cc View 1 2 3 4 5 6 7 1 chunk +139 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 54 (32 generated)
Shuhei Takahashi
yusukes, hashimoto: PTAL
4 years ago (2016-12-14 09:05:12 UTC) #6
Shuhei Takahashi
Oops, I meant lhchavez. lhchavez, hashimoto: PTAL yusukes: FYI
4 years ago (2016-12-14 13:06:04 UTC) #10
Luis Héctor Chávez
https://codereview.chromium.org/2572683004/diff/40001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc File chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc (right): https://codereview.chromium.org/2572683004/diff/40001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc#newcode110 chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc:110: base::Unretained(this), base::Owned(context.release()), Who will be responsible of deleting |context|, ...
4 years ago (2016-12-14 20:53:51 UTC) #13
Shuhei Takahashi
https://codereview.chromium.org/2572683004/diff/40001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc File chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc (right): https://codereview.chromium.org/2572683004/diff/40001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc#newcode110 chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc:110: base::Unretained(this), base::Owned(context.release()), On 2016/12/14 20:53:50, Luis Héctor Chávez wrote: ...
4 years ago (2016-12-15 02:37:55 UTC) #16
hashimoto
https://codereview.chromium.org/2572683004/diff/60001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc File chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc (right): https://codereview.chromium.org/2572683004/diff/60001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc#newcode83 chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc:83: // It is guaranteed that |this| outlives |context|, so ...
4 years ago (2016-12-15 03:53:22 UTC) #19
Shuhei Takahashi
https://codereview.chromium.org/2572683004/diff/60001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc File chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc (right): https://codereview.chromium.org/2572683004/diff/60001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc#newcode83 chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc:83: // It is guaranteed that |this| outlives |context|, so ...
4 years ago (2016-12-15 05:21:53 UTC) #22
Shuhei Takahashi
https://codereview.chromium.org/2572683004/diff/60001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc File chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc (right): https://codereview.chromium.org/2572683004/diff/60001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc#newcode83 chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc:83: // It is guaranteed that |this| outlives |context|, so ...
4 years ago (2016-12-15 05:26:15 UTC) #23
hashimoto
https://codereview.chromium.org/2572683004/diff/60001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc File chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc (right): https://codereview.chromium.org/2572683004/diff/60001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc#newcode83 chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc:83: // It is guaranteed that |this| outlives |context|, so ...
4 years ago (2016-12-15 10:34:58 UTC) #24
Shuhei Takahashi
On 2016/12/15 10:34:58, hashimoto wrote: > https://codereview.chromium.org/2572683004/diff/60001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc > File > chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc > (right): > > ...
4 years ago (2016-12-15 11:13:59 UTC) #25
Shuhei Takahashi
PTAL Now ArcDPAsyncFileUtil uses WeakPtrFactory.
4 years ago (2016-12-15 14:32:05 UTC) #28
Shuhei Takahashi
Fixed unit tests which failed due to FilePath::AppendRelativePath.
4 years ago (2016-12-15 16:37:04 UTC) #33
Luis Héctor Chávez
lgtm with nits https://codereview.chromium.org/2572683004/diff/40001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc File chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc (right): https://codereview.chromium.org/2572683004/diff/40001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc#newcode34 chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc:34: if (components.size() < 5 || components[0] ...
4 years ago (2016-12-15 21:26:10 UTC) #36
Shuhei Takahashi
Thanks Luis! https://codereview.chromium.org/2572683004/diff/140001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc File chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc (right): https://codereview.chromium.org/2572683004/diff/140001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc#newcode9 chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc:9: #include "base/bind.h" On 2016/12/15 21:26:10, Luis Héctor ...
4 years ago (2016-12-16 03:21:12 UTC) #37
hashimoto
lgtm https://codereview.chromium.org/2572683004/diff/160001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.h File chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.h (right): https://codereview.chromium.org/2572683004/diff/160001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.h#newcode10 chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.h:10: #include "base/memory/weak_ptr.h" weak_ptr_factory_ looks unused. https://codereview.chromium.org/2572683004/diff/160001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc File chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc ...
4 years ago (2016-12-16 09:03:52 UTC) #38
Shuhei Takahashi
https://codereview.chromium.org/2572683004/diff/160001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.h File chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.h (right): https://codereview.chromium.org/2572683004/diff/160001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.h#newcode10 chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.h:10: #include "base/memory/weak_ptr.h" On 2016/12/16 09:03:52, hashimoto wrote: > weak_ptr_factory_ ...
4 years ago (2016-12-16 09:42:13 UTC) #39
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/2572683004/180001
4 years ago (2016-12-16 09:42:48 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/290397)
4 years ago (2016-12-16 10:37:40 UTC) #44
Shuhei Takahashi
On 2016/12/16 10:37:40, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years ago (2016-12-16 10:55:58 UTC) #45
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/2572683004/200001
4 years ago (2016-12-16 10:56:25 UTC) #48
Shuhei Takahashi
For the record, it seems out backend delegates are constructed on UI thread. Check failed: ...
4 years ago (2016-12-16 11:13:14 UTC) #49
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years ago (2016-12-16 11:53:54 UTC) #52
commit-bot: I haz the power
4 years ago (2016-12-16 11:56:26 UTC) #54
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/29942ba33818a9db2fc90a441b80d56cbdbc1f1f
Cr-Commit-Position: refs/heads/master@{#439090}

Powered by Google App Engine
This is Rietveld 408576698