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

Issue 486093002: Fix thumbnail store crashing on loading old files (Closed)

Created:
6 years, 4 months ago by David Trainor- moved to gerrit
Modified:
6 years, 4 months ago
Reviewers:
Ted C, clholgat
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Fix thumbnail store crashing on loading old files - Was loading thumbnails in little endian, but since the files were from java's output stream they were in big endian. This was causing all sorts of issues with old thumbnails. - Added back ETC1 header and fixed the file format to match the old version. BUG=398319 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290708

Patch Set 1 #

Total comments: 14

Patch Set 2 : Pulled out helpers. Addressed comments #

Patch Set 3 : Helpers to anonymous namespace, fixed findbugs, added >= 0 size checks #

Patch Set 4 : Handle endianness of float reads #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -80 lines) Patch
M chrome/browser/android/thumbnail/thumbnail_store.cc View 1 2 3 7 chunks +226 lines, -80 lines 1 comment Download
M third_party/android_opengl/etc1/etc1.h View 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/android_opengl/etc1/etc1.cpp View 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
David Trainor- moved to gerrit
PTAL. This isn't the ideal way to do this at all, but for M38 this ...
6 years, 4 months ago (2014-08-19 03:33:34 UTC) #1
Ted C
https://codereview.chromium.org/486093002/diff/1/chrome/browser/android/thumbnail/thumbnail_store.cc File chrome/browser/android/thumbnail/thumbnail_store.cc (right): https://codereview.chromium.org/486093002/diff/1/chrome/browser/android/thumbnail/thumbnail_store.cc#newcode73 chrome/browser/android/thumbnail/thumbnail_store.cc:73: if (file.WriteAtCurrentPos(buffer, sizeof(T)) != sizeof(T)) Could you also just ...
6 years, 4 months ago (2014-08-19 16:51:10 UTC) #2
David Trainor- moved to gerrit
Addressed comments. ptal https://codereview.chromium.org/486093002/diff/1/chrome/browser/android/thumbnail/thumbnail_store.cc File chrome/browser/android/thumbnail/thumbnail_store.cc (right): https://codereview.chromium.org/486093002/diff/1/chrome/browser/android/thumbnail/thumbnail_store.cc#newcode73 chrome/browser/android/thumbnail/thumbnail_store.cc:73: if (file.WriteAtCurrentPos(buffer, sizeof(T)) != sizeof(T)) On ...
6 years, 4 months ago (2014-08-19 18:31:07 UTC) #3
Ted C
lgtm https://codereview.chromium.org/486093002/diff/60001/chrome/browser/android/thumbnail/thumbnail_store.cc File chrome/browser/android/thumbnail/thumbnail_store.cc (right): https://codereview.chromium.org/486093002/diff/60001/chrome/browser/android/thumbnail/thumbnail_store.cc#newcode510 chrome/browser/android/thumbnail/thumbnail_store.cc:510: } // anonymous namespace Normally, people leave out ...
6 years, 4 months ago (2014-08-19 21:02:03 UTC) #4
David Trainor- moved to gerrit
The CQ bit was checked by dtrainor@chromium.org
6 years, 4 months ago (2014-08-19 22:21:51 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrainor@chromium.org/486093002/60001
6 years, 4 months ago (2014-08-19 22:25:19 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-19 23:03:07 UTC) #7
commit-bot: I haz the power
6 years, 4 months ago (2014-08-20 00:09:37 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 (60001) as 290708

Powered by Google App Engine
This is Rietveld 408576698