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

Issue 2379323002: arc: Exclude non-media files from Android media scanning. (Closed)

Created:
4 years, 2 months ago by Shuhei Takahashi
Modified:
4 years, 2 months ago
Reviewers:
Yusuke Sato, satorux1
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Exclude non-media files from Android media scanning. Currently ArcDownloadsWatcherService requests Android media provider to scan every new/modified files under the Downloads directory. It causes heavy load when many files are created/deleted there. This change excludes files not supported by Android media scanner. BUG=chromium:651731 TEST=touch a.txt # Not scanned TEST=touch a.png # Scanned TEST=unit_tests --gtest_filter='ArcDownloadsWatcherServiceTest.*' Committed: https://crrev.com/748504fe82a72cd664eec781f844fbf086c906d1 Cr-Commit-Position: refs/heads/master@{#422723}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressed comments. #

Total comments: 6

Patch Set 3 : Add unittest. #

Patch Set 4 : IWYU #

Total comments: 4

Patch Set 5 : Addressed comments from yusukes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -0 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_downloads_watcher_service.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc View 1 2 3 5 chunks +73 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_downloads_watcher_service_unittest.cc View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
Shuhei Takahashi
yusukes: PTAL
4 years, 2 months ago (2016-09-30 10:18:34 UTC) #4
Yusuke Sato
mostly nits: https://codereview.chromium.org/2379323002/diff/1/chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc File chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc (right): https://codereview.chromium.org/2379323002/diff/1/chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc#newcode45 chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc:45: // Entries must be sorted by lexicographical ...
4 years, 2 months ago (2016-09-30 22:51:24 UTC) #7
Shuhei Takahashi
PTAL https://codereview.chromium.org/2379323002/diff/1/chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc File chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc (right): https://codereview.chromium.org/2379323002/diff/1/chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc#newcode45 chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc:45: // Entries must be sorted by lexicographical order ...
4 years, 2 months ago (2016-10-03 08:48:52 UTC) #9
Yusuke Sato
lg, but can you upload the test file and run try? https://codereview.chromium.org/2379323002/diff/20001/chrome/browser/chromeos/BUILD.gn File chrome/browser/chromeos/BUILD.gn (right): ...
4 years, 2 months ago (2016-10-03 16:54:54 UTC) #10
Shuhei Takahashi
satorux: PTAL for BUILD.gn yusukes: PTAL CQ dry-run is now in progress. https://codereview.chromium.org/2379323002/diff/20001/chrome/browser/chromeos/BUILD.gn File chrome/browser/chromeos/BUILD.gn ...
4 years, 2 months ago (2016-10-04 03:48:13 UTC) #14
Yusuke Sato
lgtm https://codereview.chromium.org/2379323002/diff/60001/chrome/browser/chromeos/arc/arc_downloads_watcher_service_unittest.cc File chrome/browser/chromeos/arc/arc_downloads_watcher_service_unittest.cc (right): https://codereview.chromium.org/2379323002/diff/60001/chrome/browser/chromeos/arc/arc_downloads_watcher_service_unittest.cc#newcode7 chrome/browser/chromeos/arc/arc_downloads_watcher_service_unittest.cc:7: #include "testing/gtest/include/gtest/gtest.h" IWYU: #include "base/files/file_path.h" for FILE_PATH_LITERAL and ...
4 years, 2 months ago (2016-10-04 04:07:01 UTC) #15
Shuhei Takahashi
Thanks for reviewing, Yusuke! https://codereview.chromium.org/2379323002/diff/60001/chrome/browser/chromeos/arc/arc_downloads_watcher_service_unittest.cc File chrome/browser/chromeos/arc/arc_downloads_watcher_service_unittest.cc (right): https://codereview.chromium.org/2379323002/diff/60001/chrome/browser/chromeos/arc/arc_downloads_watcher_service_unittest.cc#newcode7 chrome/browser/chromeos/arc/arc_downloads_watcher_service_unittest.cc:7: #include "testing/gtest/include/gtest/gtest.h" On 2016/10/04 04:07:01, ...
4 years, 2 months ago (2016-10-04 04:21:14 UTC) #16
satorux1
BUILD.gn lgtm
4 years, 2 months ago (2016-10-04 05:11:12 UTC) #17
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/2379323002/80001
4 years, 2 months ago (2016-10-04 05:16:40 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-04 06:13:18 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 06:15:02 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/748504fe82a72cd664eec781f844fbf086c906d1
Cr-Commit-Position: refs/heads/master@{#422723}

Powered by Google App Engine
This is Rietveld 408576698