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

Issue 18986012: Media Galleries API Picasa: Make PicasaDataProvider handle async PMP and INI parsing robustly. (Closed)

Created:
7 years, 5 months ago by tommycli
Modified:
7 years, 3 months ago
CC:
chromium-reviews, vandebo (ex-Chrome), Lei Zhang, tzik+watch_chromium.org, Greg Billock, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@0039-picasa-import-sandbox-ini-parsing
Visibility:
Public.

Description

Media Galleries API Picasa: Make PicasaDataProvider handle async PMP and INI parsing robustly. Depends on https://codereview.chromium.org/18562007/. BUG=151701 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220906

Patch Set 1 #

Patch Set 2 : Add invalidate call. #

Total comments: 32

Patch Set 3 : vandebo comments #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Total comments: 22

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 14

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : Break off PicasaFileUtil unittest changes onto separate CL. #

Patch Set 13 : Nevermind. Can't be done. #

Total comments: 24

Patch Set 14 : #

Patch Set 15 : Fix PicasaFileUtil unittest thread #

Patch Set 16 : #

Total comments: 26

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : #

Patch Set 20 : #

Total comments: 10

Patch Set 21 : #

Total comments: 4

Patch Set 22 : #

Patch Set 23 : fix clang build #

Patch Set 24 : Removed some spaces #

Patch Set 25 : #

Total comments: 2

Patch Set 26 : #

Total comments: 2

Patch Set 27 : expand sandbox warmup comment #

Total comments: 2

Patch Set 28 : update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+941 lines, -134 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 14 15 16 17 18 19 20 2 chunks +58 lines, -12 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +161 lines, -18 lines 0 comments Download
A chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +548 lines, -0 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/picasa/picasa_file_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/picasa/picasa_file_util.cc View 1 2 3 4 5 6 7 8 9 4 chunks +32 lines, -8 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/picasa/picasa_file_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +42 lines, -28 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +31 lines, -11 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +8 lines, -7 lines 0 comments Download
M 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 16 4 chunks +13 lines, -13 lines 0 comments Download
M chrome/browser/media_galleries/imported_media_gallery_registry.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/media_galleries/picasa_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +7 lines, -1 line 0 comments Download
M chrome/common/media_galleries/picasa_types.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/utility/media_galleries/picasa_album_table_reader.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/utility/media_galleries/picasa_album_table_reader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +14 lines, -22 lines 0 comments Download
M content/common/sandbox_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
tommycli
vandebo: These are the changes we discussed to the PicasaDataProvider to make it robust against ...
7 years, 5 months ago (2013-07-11 01:15:37 UTC) #1
vandebo (ex-Chrome)
https://codereview.chromium.org/18986012/diff/4001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc File chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc (right): https://codereview.chromium.org/18986012/diff/4001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc#newcode32 chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc:32: bool need_albums_images, Better to have this as an enum ...
7 years, 5 months ago (2013-07-11 16:56:27 UTC) #2
tommycli
https://codereview.chromium.org/18986012/diff/4001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc File chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc (right): https://codereview.chromium.org/18986012/diff/4001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc#newcode32 chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc:32: bool need_albums_images, On 2013/07/11 16:56:27, vandebo wrote: > Better ...
7 years, 5 months ago (2013-07-11 21:19:16 UTC) #3
vandebo (ex-Chrome)
Some quick comments before I run off. https://codereview.chromium.org/18986012/diff/4001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc File chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc (right): https://codereview.chromium.org/18986012/diff/4001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc#newcode32 chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc:32: bool need_albums_images, ...
7 years, 5 months ago (2013-07-11 23:22:37 UTC) #4
tommycli
vandebo: I added the 'success' flags we talked about and tried to simplify the callback ...
7 years, 5 months ago (2013-07-12 01:37:48 UTC) #5
vandebo (ex-Chrome)
https://codereview.chromium.org/18986012/diff/26001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc File chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc (right): https://codereview.chromium.org/18986012/diff/26001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc#newcode38 chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc:38: switch (data_state_) { An open coded version is a ...
7 years, 5 months ago (2013-07-12 18:29:59 UTC) #6
tommycli
Much simplified according to your suggestions. https://codereview.chromium.org/18986012/diff/26001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc File chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc (right): https://codereview.chromium.org/18986012/diff/26001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc#newcode38 chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc:38: switch (data_state_) { ...
7 years, 5 months ago (2013-07-12 21:37:19 UTC) #7
vandebo (ex-Chrome)
This could really use a test. https://codereview.chromium.org/18986012/diff/49001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc File chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc (right): https://codereview.chromium.org/18986012/diff/49001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc#newcode25 chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc:25: void CallAllReadyCallbacks( nit: ...
7 years, 5 months ago (2013-07-12 22:17:27 UTC) #8
tommycli
vandebo: Patchset 8->9 addresses your previous comments. Patchset 10 adds an end-to-end browsertest. https://codereview.chromium.org/18986012/diff/49001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc File ...
7 years, 4 months ago (2013-08-14 18:23:17 UTC) #9
vandebo (ex-Chrome)
https://codereview.chromium.org/18986012/diff/75001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc File chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc (right): https://codereview.chromium.org/18986012/diff/75001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc#newcode105 chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc:105: DoRefreshIfNecessary(); This is already "IfNecessary", so why not check ...
7 years, 4 months ago (2013-08-14 23:48:11 UTC) #10
tommycli
https://codereview.chromium.org/18986012/diff/75001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc File chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc (right): https://codereview.chromium.org/18986012/diff/75001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc#newcode105 chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.cc:105: DoRefreshIfNecessary(); On 2013/08/14 23:48:11, vandebo wrote: > This is ...
7 years, 4 months ago (2013-08-15 22:52:36 UTC) #11
tommycli
vandebo: Patchset 16 changes the interface of PicasaDataProvider slightly from Patchset 15.
7 years, 4 months ago (2013-08-21 21:04:10 UTC) #12
tommycli
https://codereview.chromium.org/18986012/diff/123001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc File chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc (right): https://codereview.chromium.org/18986012/diff/123001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc#newcode300 chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc:300: EXPECT_EQ( Technically correct though somewhat inconsistent formatting, but this ...
7 years, 4 months ago (2013-08-21 21:11:59 UTC) #13
tommycli
On 2013/08/21 21:11:59, tommycli wrote: > https://codereview.chromium.org/18986012/diff/123001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc > File > chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc > (right): > > ...
7 years, 4 months ago (2013-08-22 00:13:02 UTC) #14
vandebo (ex-Chrome)
https://codereview.chromium.org/18986012/diff/75001/chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h File chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h (right): https://codereview.chromium.org/18986012/diff/75001/chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h#newcode36 chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h:36: typedef base::Callback<void(scoped_refptr<SafePicasaAlbumTableReader>, On 2013/08/15 22:52:36, tommycli wrote: > On ...
7 years, 4 months ago (2013-08-22 17:48:01 UTC) #15
tommycli
https://codereview.chromium.org/18986012/diff/75001/chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h File chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h (right): https://codereview.chromium.org/18986012/diff/75001/chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h#newcode36 chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h:36: typedef base::Callback<void(scoped_refptr<SafePicasaAlbumTableReader>, On 2013/08/22 17:48:02, vandebo wrote: > On ...
7 years, 4 months ago (2013-08-22 22:32:50 UTC) #16
vandebo (ex-Chrome)
https://codereview.chromium.org/18986012/diff/123001/chrome/browser/media_galleries/fileapi/picasa/picasa_file_util_unittest.cc File chrome/browser/media_galleries/fileapi/picasa/picasa_file_util_unittest.cc (right): https://codereview.chromium.org/18986012/diff/123001/chrome/browser/media_galleries/fileapi/picasa/picasa_file_util_unittest.cc#newcode235 chrome/browser/media_galleries/fileapi/picasa/picasa_file_util_unittest.cc:235: base::WaitableEvent event(true, false); On 2013/08/22 22:32:51, tommycli wrote: > ...
7 years, 4 months ago (2013-08-23 16:42:40 UTC) #17
tommycli
https://codereview.chromium.org/18986012/diff/123001/chrome/browser/media_galleries/fileapi/picasa/picasa_file_util_unittest.cc File chrome/browser/media_galleries/fileapi/picasa/picasa_file_util_unittest.cc (right): https://codereview.chromium.org/18986012/diff/123001/chrome/browser/media_galleries/fileapi/picasa/picasa_file_util_unittest.cc#newcode235 chrome/browser/media_galleries/fileapi/picasa/picasa_file_util_unittest.cc:235: base::WaitableEvent event(true, false); On 2013/08/23 16:42:41, vandebo wrote: > ...
7 years, 3 months ago (2013-08-26 22:06:16 UTC) #18
vandebo (ex-Chrome)
LGTM with nits and after clang fixes. https://codereview.chromium.org/18986012/diff/162001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc File chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc (right): https://codereview.chromium.org/18986012/diff/162001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc#newcode523 chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc:523: VerifyRefreshResults, I ...
7 years, 3 months ago (2013-08-27 04:29:04 UTC) #19
tommycli
https://codereview.chromium.org/18986012/diff/162001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc File chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc (right): https://codereview.chromium.org/18986012/diff/162001/chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc#newcode523 chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc:523: VerifyRefreshResults, On 2013/08/27 04:29:04, vandebo wrote: > I don't ...
7 years, 3 months ago (2013-08-27 18:39:17 UTC) #20
tommycli
thestig: I believe I need your LG for gypi, common, and utility.
7 years, 3 months ago (2013-08-27 18:41:05 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/18986012/189001
7 years, 3 months ago (2013-08-27 18:50:29 UTC) #22
tommycli
On 2013/08/27 18:50:29, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 3 months ago (2013-08-27 19:51:27 UTC) #23
commit-bot: I haz the power
Failed to trigger a try job on chromium_presubmit HTTP Error 400: Bad Request
7 years, 3 months ago (2013-08-28 00:24:37 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/18986012/192001
7 years, 3 months ago (2013-08-28 00:26:42 UTC) #25
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=163673
7 years, 3 months ago (2013-08-28 05:36:19 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/18986012/192001
7 years, 3 months ago (2013-08-29 21:20:26 UTC) #27
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=164422
7 years, 3 months ago (2013-08-30 00:10:39 UTC) #28
tommycli
jeremy: Added /private/etc/localtime and /etc (just the directory) for read-file-metadata in utility.sb. Need OWNER review.
7 years, 3 months ago (2013-08-30 22:36:38 UTC) #29
jeremy
https://codereview.chromium.org/18986012/diff/185001/content/utility/utility.sb File content/utility/utility.sb (right): https://codereview.chromium.org/18986012/diff/185001/content/utility/utility.sb#newcode23 content/utility/utility.sb:23: (literal "/etc")) Per my comment in email, we generally ...
7 years, 3 months ago (2013-08-30 22:40:18 UTC) #30
tommycli
jeremy: The warmup technique totally worked. Whoa. https://codereview.chromium.org/18986012/diff/185001/content/utility/utility.sb File content/utility/utility.sb (right): https://codereview.chromium.org/18986012/diff/185001/content/utility/utility.sb#newcode23 content/utility/utility.sb:23: (literal "/etc")) ...
7 years, 3 months ago (2013-08-30 22:57:04 UTC) #31
jeremy
https://codereview.chromium.org/18986012/diff/179001/content/common/sandbox_mac.mm File content/common/sandbox_mac.mm (right): https://codereview.chromium.org/18986012/diff/179001/content/common/sandbox_mac.mm#newcode312 content/common/sandbox_mac.mm:312: // Allow access to local timezones. Can you provide ...
7 years, 3 months ago (2013-08-30 23:02:51 UTC) #32
tommycli
jeremy: I expanded on the comment. Thanks. https://codereview.chromium.org/18986012/diff/179001/content/common/sandbox_mac.mm File content/common/sandbox_mac.mm (right): https://codereview.chromium.org/18986012/diff/179001/content/common/sandbox_mac.mm#newcode312 content/common/sandbox_mac.mm:312: // Allow ...
7 years, 3 months ago (2013-08-30 23:14:20 UTC) #33
jeremy
OK, just a small comment fix and then we should be good to go... Did ...
7 years, 3 months ago (2013-08-30 23:26:26 UTC) #34
tommycli
jeremy: Fixed comment. I haven't tried it on the other versions of OS X. I ...
7 years, 3 months ago (2013-08-30 23:36:55 UTC) #35
jeremy
sandbox_mac.mm LGTM
7 years, 3 months ago (2013-08-30 23:55:54 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/18986012/243001
7 years, 3 months ago (2013-08-31 00:04:58 UTC) #37
tommycli
jeremy: thanks for all your help today.
7 years, 3 months ago (2013-08-31 00:18:08 UTC) #38
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=164292
7 years, 3 months ago (2013-08-31 03:37:49 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/18986012/243001
7 years, 3 months ago (2013-09-03 06:06:07 UTC) #40
commit-bot: I haz the power
7 years, 3 months ago (2013-09-03 07:11:56 UTC) #41
Message was sent while issue was closed.
Change committed as 220906

Powered by Google App Engine
This is Rietveld 408576698