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

Issue 12704024: Simple PMP reader to parse Picasa's metadata (Closed)

Created:
7 years, 9 months ago by tommycli
Modified:
7 years, 8 months ago
CC:
chromium-reviews, tzik+watch_chromium.org, jam, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Simple PMP reader to parse Picasa's metadata For Media Galleries project. BUG=151701 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193537

Patch Set 1 #

Patch Set 2 : Fix memory issue. #

Total comments: 38

Patch Set 3 : Fix on some memory issues and table reading. #

Patch Set 4 : Add explicit keywords. #

Patch Set 5 : Address vandebo's comments. #

Patch Set 6 : Formatting fixes. #

Patch Set 7 : More formatting/ style changes. #

Total comments: 46

Patch Set 8 : Address vandebo's comments. Design fixes. #

Patch Set 9 : Change to ScopedVector. #

Patch Set 10 : Formatting fix. #

Patch Set 11 : Fix rvalue usage in move operation. #

Total comments: 56

Patch Set 12 : Add field type accessor. Make naming uniform. #

Patch Set 13 : Add test for PmpTableReader. Address vandebo's comments. #

Patch Set 14 : Simplify table reader by making it non-reusable. #

Patch Set 15 : Remove unused constant. #

Total comments: 80

Patch Set 16 : Simplify and make names more uniform. Remove comments. #

Patch Set 17 : Assert on an IO allowed thread. #

Patch Set 18 : Missed a change. #

Total comments: 10

Patch Set 19 : Change namespace to picasaimport. Minor fixes. #

Patch Set 20 : Make PmpTestHelper stateful and possess the temporary directory. #

Total comments: 12

Patch Set 21 : Add Win specific code. #

Patch Set 22 : Fix linux_clang and linux_rel builds. #

Patch Set 23 : Fix mac build. #

Patch Set 24 : Fix windows builds probably. #

Patch Set 25 : Add missing include #

Patch Set 26 : Add more windows specific code. #

Patch Set 27 : Windows file paths. #

Patch Set 28 : Add missing include #

Total comments: 8

Patch Set 29 : Address vandebo's comments #

Total comments: 22

Patch Set 30 : Remove Win specific defines and fix up PmpFieldType usage. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+922 lines, -0 lines) Patch
M content/content_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 25 26 27 28 29 1 chunk +4 lines, -0 lines 0 comments Download
A webkit/fileapi/media/picasa/pmp_column_reader.h 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 28 1 chunk +67 lines, -0 lines 0 comments Download
A webkit/fileapi/media/picasa/pmp_column_reader.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 24 25 26 27 28 29 1 chunk +186 lines, -0 lines 0 comments Download
A webkit/fileapi/media/picasa/pmp_column_reader_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 23 24 25 26 27 28 29 1 chunk +179 lines, -0 lines 0 comments Download
A webkit/fileapi/media/picasa/pmp_constants.h 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 28 29 1 chunk +46 lines, -0 lines 0 comments Download
A webkit/fileapi/media/picasa/pmp_table_reader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +48 lines, -0 lines 0 comments Download
A webkit/fileapi/media/picasa/pmp_table_reader.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 24 25 26 27 28 29 1 chunk +88 lines, -0 lines 0 comments Download
A webkit/fileapi/media/picasa/pmp_table_reader_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 23 24 25 26 27 28 29 1 chunk +72 lines, -0 lines 0 comments Download
A webkit/fileapi/media/picasa/pmp_test_helper.h 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 28 29 1 chunk +55 lines, -0 lines 0 comments Download
A webkit/fileapi/media/picasa/pmp_test_helper.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 24 25 26 27 28 29 1 chunk +172 lines, -0 lines 0 comments Download
M webkit/fileapi/webkit_fileapi.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 25 26 27 28 29 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
tommycli
Hi Steve, Can I get a first pass review on this?
7 years, 9 months ago (2013-03-25 21:54:28 UTC) #1
vandebo (ex-Chrome)
https://codereview.chromium.org/12704024/diff/2001/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/12704024/diff/2001/content/content_tests.gypi#newcode469 content/content_tests.gypi:469: '../webkit/fileapi/media/picasa/pmp_column_reader.cc', You don't want pmp_column_reader.* in here, unless those ...
7 years, 9 months ago (2013-03-26 01:12:14 UTC) #2
tommycli
https://codereview.chromium.org/12704024/diff/2001/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/12704024/diff/2001/content/content_tests.gypi#newcode469 content/content_tests.gypi:469: '../webkit/fileapi/media/picasa/pmp_column_reader.cc', On 2013/03/26 01:12:14, vandebo wrote: > You don't ...
7 years, 9 months ago (2013-03-26 22:30:43 UTC) #3
vandebo (ex-Chrome)
https://codereview.chromium.org/12704024/diff/21002/webkit/fileapi/media/picasa/pmp_column_reader.cc File webkit/fileapi/media/picasa/pmp_column_reader.cc (right): https://codereview.chromium.org/12704024/diff/21002/webkit/fileapi/media/picasa/pmp_column_reader.cc#newcode27 webkit/fileapi/media/picasa/pmp_column_reader.cc:27: if(len < kPmpHeaderSize || data == NULL) { nit: ...
7 years, 9 months ago (2013-03-27 00:06:19 UTC) #4
tommycli
https://codereview.chromium.org/12704024/diff/21002/webkit/fileapi/media/picasa/pmp_column_reader.cc File webkit/fileapi/media/picasa/pmp_column_reader.cc (right): https://codereview.chromium.org/12704024/diff/21002/webkit/fileapi/media/picasa/pmp_column_reader.cc#newcode27 webkit/fileapi/media/picasa/pmp_column_reader.cc:27: if(len < kPmpHeaderSize || data == NULL) { On ...
7 years, 9 months ago (2013-03-27 19:34:30 UTC) #5
vandebo (ex-Chrome)
https://codereview.chromium.org/12704024/diff/40001/webkit/fileapi/media/picasa/pmp_column_reader.cc File webkit/fileapi/media/picasa/pmp_column_reader.cc (right): https://codereview.chromium.org/12704024/diff/40001/webkit/fileapi/media/picasa/pmp_column_reader.cc#newcode52 webkit/fileapi/media/picasa/pmp_column_reader.cc:52: DCHECK(length_ > kPmpHeaderSize); DCHECK_GT https://codereview.chromium.org/12704024/diff/40001/webkit/fileapi/media/picasa/pmp_column_reader.cc#newcode57 webkit/fileapi/media/picasa/pmp_column_reader.cc:57: } else { ...
7 years, 9 months ago (2013-03-28 00:56:04 UTC) #6
tommycli
Also added a unit test for PmpTableReader. https://codereview.chromium.org/12704024/diff/40001/webkit/fileapi/media/picasa/pmp_column_reader.cc File webkit/fileapi/media/picasa/pmp_column_reader.cc (right): https://codereview.chromium.org/12704024/diff/40001/webkit/fileapi/media/picasa/pmp_column_reader.cc#newcode52 webkit/fileapi/media/picasa/pmp_column_reader.cc:52: DCHECK(length_ > ...
7 years, 9 months ago (2013-03-29 00:16:00 UTC) #7
vandebo (ex-Chrome)
https://codereview.chromium.org/12704024/diff/40001/webkit/fileapi/media/picasa/pmp_column_reader.cc File webkit/fileapi/media/picasa/pmp_column_reader.cc (right): https://codereview.chromium.org/12704024/diff/40001/webkit/fileapi/media/picasa/pmp_column_reader.cc#newcode64 webkit/fileapi/media/picasa/pmp_column_reader.cc:64: ReadPrimitive<uint32>(row, result)); On 2013/03/29 00:16:01, tommycli wrote: > On ...
7 years, 8 months ago (2013-03-29 21:35:07 UTC) #8
tommycli
https://codereview.chromium.org/12704024/diff/61001/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/12704024/diff/61001/content/content_tests.gypi#newcode477 content/content_tests.gypi:477: '../webkit/fileapi/media/picasa/pmp_test_helper.cc', On 2013/03/29 21:35:07, vandebo wrote: > pmp_test_utils.* would ...
7 years, 8 months ago (2013-04-01 22:19:18 UTC) #9
vandebo (ex-Chrome)
I was thinking, we might want to put this code into a different namespace... picasaimport? ...
7 years, 8 months ago (2013-04-02 18:10:55 UTC) #10
tommycli
I changed the namespace of these classes from fileapi to picasaimport. https://codereview.chromium.org/12704024/diff/84001/webkit/fileapi/media/picasa/pmp_column_reader.cc File webkit/fileapi/media/picasa/pmp_column_reader.cc (right): ...
7 years, 8 months ago (2013-04-02 19:05:55 UTC) #11
tommycli
Made PmpTestHelper stateful and own the temporary directory. https://codereview.chromium.org/12704024/diff/40001/webkit/fileapi/media/picasa/pmp_column_reader.cc File webkit/fileapi/media/picasa/pmp_column_reader.cc (right): https://codereview.chromium.org/12704024/diff/40001/webkit/fileapi/media/picasa/pmp_column_reader.cc#newcode64 webkit/fileapi/media/picasa/pmp_column_reader.cc:64: ReadPrimitive<uint32>(row, ...
7 years, 8 months ago (2013-04-02 21:12:35 UTC) #12
vandebo (ex-Chrome)
Looking good. Just a bit more clean up. https://codereview.chromium.org/12704024/diff/89003/webkit/fileapi/media/picasa/pmp_constants.h File webkit/fileapi/media/picasa/pmp_constants.h (right): https://codereview.chromium.org/12704024/diff/89003/webkit/fileapi/media/picasa/pmp_constants.h#newcode36 webkit/fileapi/media/picasa/pmp_constants.h:36: STRING_TYPE ...
7 years, 8 months ago (2013-04-02 22:17:58 UTC) #13
tommycli
This version compiles and passes tests on all the build platforms (finally). https://chromiumcodereview.appspot.com/12704024/diff/89003/webkit/fileapi/media/picasa/pmp_constants.h File webkit/fileapi/media/picasa/pmp_constants.h ...
7 years, 8 months ago (2013-04-05 16:49:24 UTC) #14
vandebo (ex-Chrome)
https://chromiumcodereview.appspot.com/12704024/diff/89003/webkit/fileapi/media/picasa/pmp_constants.h File webkit/fileapi/media/picasa/pmp_constants.h (right): https://chromiumcodereview.appspot.com/12704024/diff/89003/webkit/fileapi/media/picasa/pmp_constants.h#newcode36 webkit/fileapi/media/picasa/pmp_constants.h:36: STRING_TYPE = 0x00, On 2013/04/05 16:49:24, tommycli wrote: > ...
7 years, 8 months ago (2013-04-05 18:52:47 UTC) #15
tommycli
https://codereview.chromium.org/12704024/diff/89003/webkit/fileapi/media/picasa/pmp_constants.h File webkit/fileapi/media/picasa/pmp_constants.h (right): https://codereview.chromium.org/12704024/diff/89003/webkit/fileapi/media/picasa/pmp_constants.h#newcode36 webkit/fileapi/media/picasa/pmp_constants.h:36: STRING_TYPE = 0x00, On 2013/04/05 18:52:47, vandebo wrote: > ...
7 years, 8 months ago (2013-04-05 20:06:44 UTC) #16
vandebo (ex-Chrome)
Kinoko, please do an owners/final review. LGTM
7 years, 8 months ago (2013-04-05 20:32:21 UTC) #17
kinuko
lgtm + some comments. Apologies for my slow review!! Currently this one isn't called from ...
7 years, 8 months ago (2013-04-10 02:27:53 UTC) #18
tommycli
Thanks for the review kinuko. I fixed it up according to your comments, and will ...
7 years, 8 months ago (2013-04-10 18:32:42 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/12704024/154001
7 years, 8 months ago (2013-04-10 18:47:20 UTC) #20
commit-bot: I haz the power
Presubmit check for 12704024-154001 failed and returned exit status 1. INFO:root:Found 11 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-10 18:47:29 UTC) #21
tommycli
7 years, 8 months ago (2013-04-10 19:08:58 UTC) #22
Avi (use Gerrit)
lgtm owner stampity stamp
7 years, 8 months ago (2013-04-10 19:10:19 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/12704024/154001
7 years, 8 months ago (2013-04-10 19:26:31 UTC) #24
commit-bot: I haz the power
7 years, 8 months ago (2013-04-11 01:58:33 UTC) #25
Message was sent while issue was closed.
Change committed as 193537

Powered by Google App Engine
This is Rietveld 408576698