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

Issue 18562007: Media Galleries API Picasa: Put INI indexing step into sandboxed utility process. (Closed)

Created:
7 years, 5 months ago by tommycli
Modified:
7 years, 4 months ago
CC:
chromium-reviews, Lei Zhang, tzik+watch_chromium.org, Greg Billock, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@0035-picasa-import-sandbox-pmp-reading
Visibility:
Public.

Description

Media Galleries API Picasa: Put INI indexing step into sandboxed utility process. Picasa parses all the INI files in the Folders to build up an index of the album contents. This sandboxes that operation into the utility process. BUG=151701 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213948

Patch Set 1 #

Patch Set 2 : turn down similarity requ #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Comment and include fixes. #

Patch Set 5 : Make INI file reading on MediaTaskRunner and in async batches #

Total comments: 7

Patch Set 6 : Fix var name. add a comment. #

Patch Set 7 : #

Total comments: 14

Patch Set 8 : IWYU and vandebo fixes #

Patch Set 9 : #

Patch Set 10 : Prealloc vector space. #

Patch Set 11 : Construct and populate FolderINIContents in place. #

Patch Set 12 : Fix rreserve process #

Patch Set 13 : Add success flag that's false when utility process crashes. #

Total comments: 7

Patch Set 14 : remove weakptr usage. #

Total comments: 2

Patch Set 15 : #

Patch Set 16 : patch that compiles #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -56 lines) Patch
M chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 1 chunk +0 lines, -3 lines 0 comments Download
A + chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +29 lines, -32 lines 0 comments Download
A chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +141 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_utility_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/common/media_galleries/picasa_types.h View 1 2 3 4 5 6 7 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 2 chunks +16 lines, -1 line 0 comments Download
M chrome/utility/media_galleries/picasa_albums_indexer.h View 1 2 3 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/utility/media_galleries/picasa_albums_indexer.cc View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
tommycli
This is similar to the iTunes Windows pref sandboxing work and the Picasa PMP sandboxing ...
7 years, 5 months ago (2013-07-02 21:14:00 UTC) #1
Lei Zhang
https://codereview.chromium.org/18562007/diff/6001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc File chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc (right): https://codereview.chromium.org/18562007/diff/6001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc#newcode22 chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc:22: // Picasa INI files are named either ".picasa.ini" OR ...
7 years, 5 months ago (2013-07-02 22:08:17 UTC) #2
Lei Zhang
My main concern is the combined size of all the ini files. I previously thought ...
7 years, 5 months ago (2013-07-02 22:10:01 UTC) #3
tommycli
thestig: Addressed your comments below. Point taken about file size. My original calculation was, 100 ...
7 years, 5 months ago (2013-07-03 00:58:28 UTC) #4
Lei Zhang
I'll look at my Picasa data when I get home. This is fine assuming the ...
7 years, 5 months ago (2013-07-03 02:00:51 UTC) #5
tommycli
vandebo: thestig out on vaca this week. Can you take over this review? thestig's primary ...
7 years, 5 months ago (2013-07-08 22:02:53 UTC) #6
vandebo (ex-Chrome)
On 2013/07/08 22:02:53, tommycli wrote: > vandebo: thestig out on vaca this week. Can you ...
7 years, 5 months ago (2013-07-09 15:48:39 UTC) #7
tommycli
On 2013/07/09 15:48:39, vandebo wrote: > On 2013/07/08 22:02:53, tommycli wrote: > > vandebo: thestig ...
7 years, 5 months ago (2013-07-09 17:17:29 UTC) #8
tommycli
On 2013/07/09 17:17:29, tommycli wrote: > On 2013/07/09 15:48:39, vandebo wrote: > > On 2013/07/08 ...
7 years, 5 months ago (2013-07-09 17:17:50 UTC) #9
tommycli
vandebo: How do you feel about my latest changes on reading the INI files? It's ...
7 years, 5 months ago (2013-07-09 21:52:56 UTC) #10
vandebo (ex-Chrome)
https://codereview.chromium.org/18562007/diff/35001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc File chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc (right): https://codereview.chromium.org/18562007/diff/35001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc#newcode86 chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc:86: if (!folders_queue.empty()) { Should this be folder_inis_? https://codereview.chromium.org/18562007/diff/35001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc#newcode92 chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc:92: ...
7 years, 5 months ago (2013-07-10 17:43:52 UTC) #11
tommycli
https://codereview.chromium.org/18562007/diff/35001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc File chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc (right): https://codereview.chromium.org/18562007/diff/35001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc#newcode86 chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc:86: if (!folders_queue.empty()) { On 2013/07/10 17:43:52, vandebo wrote: > ...
7 years, 5 months ago (2013-07-10 18:43:32 UTC) #12
vandebo (ex-Chrome)
No test? https://codereview.chromium.org/18562007/diff/35001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc File chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc (right): https://codereview.chromium.org/18562007/diff/35001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc#newcode86 chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc:86: if (!folders_queue.empty()) { On 2013/07/10 18:43:32, tommycli ...
7 years, 5 months ago (2013-07-10 19:54:03 UTC) #13
tommycli
No test because safe_itunes_* also don't have tests. Is it cool if they are covered ...
7 years, 5 months ago (2013-07-10 22:22:27 UTC) #14
vandebo (ex-Chrome)
LGTM, but please consider the comment. https://codereview.chromium.org/18562007/diff/44001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc File chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc (right): https://codereview.chromium.org/18562007/diff/44001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc#newcode83 chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc:83: folders_inis_.push_back(folder_ini); On 2013/07/10 ...
7 years, 5 months ago (2013-07-11 16:20:50 UTC) #15
vandebo (ex-Chrome)
LGTM, but please consider the comment. https://codereview.chromium.org/18562007/diff/44001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc File chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc (right): https://codereview.chromium.org/18562007/diff/44001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc#newcode83 chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc:83: folders_inis_.push_back(folder_ini); On 2013/07/10 ...
7 years, 5 months ago (2013-07-11 16:20:50 UTC) #16
tommycli
https://codereview.chromium.org/18562007/diff/44001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc File chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc (right): https://codereview.chromium.org/18562007/diff/44001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc#newcode83 chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc:83: folders_inis_.push_back(folder_ini); On 2013/07/11 16:20:50, vandebo wrote: > On 2013/07/10 ...
7 years, 5 months ago (2013-07-11 17:24:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/18562007/73001
7 years, 5 months ago (2013-07-11 17:24:33 UTC) #18
tommycli
jln: Need security OWNER review on chrome/common/chrome_utility_messages.h.
7 years, 5 months ago (2013-07-11 17:40:01 UTC) #19
tommycli
vandebo: Added a success bool in case utility process crashes. let me know if this ...
7 years, 5 months ago (2013-07-12 00:28:34 UTC) #20
vandebo (ex-Chrome)
LGTM
7 years, 5 months ago (2013-07-12 17:34:42 UTC) #21
tommycli
jln: ping for security review.
7 years, 5 months ago (2013-07-15 20:45:19 UTC) #22
tommycli
jln: Ping for security review.
7 years, 5 months ago (2013-07-18 15:15:52 UTC) #23
jln (very slow on Chromium)
On 2013/07/18 15:15:52, tommycli wrote: > jln: Ping for security review. chrome/common/chrome_utility_messages.h lgtm
7 years, 5 months ago (2013-07-22 19:55:09 UTC) #24
jln (very slow on Chromium)
(sorry for the delay, this slipped through. Don't hesitate to ping me in a separate ...
7 years, 5 months ago (2013-07-22 19:56:39 UTC) #25
tommycli
thestig: May I have an OWNER review for chrome/ ?
7 years, 5 months ago (2013-07-22 20:10:10 UTC) #26
Lei Zhang
Per in-person discussion, this relies on the WeakPtr CL, which got reverted over the weekend. ...
7 years, 5 months ago (2013-07-22 21:02:44 UTC) #27
vandebo (ex-Chrome)
https://codereview.chromium.org/18562007/diff/91001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc File chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc (right): https://codereview.chromium.org/18562007/diff/91001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc#newcode106 chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc:106: DCHECK_EQ(FINISHED_READING_INI_FILES_STATE, parser_state_); nit: shouldn't access parser_state_ from multiple threads.
7 years, 4 months ago (2013-07-24 18:15:54 UTC) #28
tommycli
thestig: Addressed your comments. Unfortunately the inter-patchset diffs will be confused since it's been two ...
7 years, 4 months ago (2013-07-25 17:02:45 UTC) #29
Lei Zhang
https://codereview.chromium.org/18562007/diff/120001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc File chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc (right): https://codereview.chromium.org/18562007/diff/120001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc#newcode89 chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc:89: weak_factory_.GetWeakPtr())); I don't think this compiles?
7 years, 4 months ago (2013-07-25 21:36:56 UTC) #30
tommycli
Whoops I must have left a file out of the patch. Sry https://chromiumcodereview.appspot.com/18562007/diff/120001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc File chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc ...
7 years, 4 months ago (2013-07-25 21:58:06 UTC) #31
Lei Zhang
lgtm https://chromiumcodereview.appspot.com/18562007/diff/91001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc File chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc (right): https://chromiumcodereview.appspot.com/18562007/diff/91001/chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc#newcode106 chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.cc:106: DCHECK_EQ(FINISHED_READING_INI_FILES_STATE, parser_state_); On 2013/07/25 17:02:51, tommycli wrote: > ...
7 years, 4 months ago (2013-07-25 23:14:58 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/18562007/140001
7 years, 4 months ago (2013-07-26 15:08:54 UTC) #33
commit-bot: I haz the power
7 years, 4 months ago (2013-07-26 17:45:39 UTC) #34
Message was sent while issue was closed.
Change committed as 213948

Powered by Google App Engine
This is Rietveld 408576698