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

Issue 1432293003: Aura on Android: fix mangling of definitions in jni.h by Byte definition in zlib. (Closed)

Created:
5 years, 1 month ago by Hadi
Modified:
5 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Aura on Android: fix mangling of definitions in jni.h by Byte definition in zlib. In image_writer_private_api.cc the operation_manager.h -> operation.h -> zip_reader.h -> minizip/unzip.h -> zlib.h -> zconf.h -> mozconff.h include path defines "Byte" as "MOZ_Z_Byte", which mangles some of the definitions in jni.h which is indirectly included by profile.h. This causes some compile errors. This patch tries to solve this problem by forward declaring zip::ZipReader in operation.h and including zip_reader.h in operation.cc instead of operation.h. BUG=554199 Committed: https://crrev.com/83deb42017ace10596869a7f9200cd80943492a4 Cr-Commit-Position: refs/heads/master@{#360076}

Patch Set 1 #

Patch Set 2 : Addressed feedback" #

Patch Set 3 : Rebase. #

Total comments: 2

Patch Set 4 : Addressed feedback from patch set 3. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -10 lines) Patch
M chrome/browser/extensions/api/image_writer_private/operation.h View 1 2 3 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/operation.cc View 1 4 chunks +9 lines, -7 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 20 (5 generated)
Hadi
PTAL. This fixes the issue we had in "image_writer_private_api.cc" for which we needed to include ...
5 years, 1 month ago (2015-11-11 19:40:25 UTC) #2
mfomitchev
Can you please add (one of the) owners of zlib to get their take on ...
5 years, 1 month ago (2015-11-11 21:50:22 UTC) #3
no sievers
> indirectly includes zlib/google/zip_reader.h which defines "Byte" as "MOZ_Z_Byte", It's not zip_reader.h but the following ...
5 years, 1 month ago (2015-11-11 22:02:22 UTC) #4
mfomitchev
On 2015/11/11 22:02:22, sievers wrote: > > indirectly includes zlib/google/zip_reader.h which defines "Byte" as > ...
5 years, 1 month ago (2015-11-11 22:56:46 UTC) #5
no sievers
On 2015/11/11 22:56:46, mfomitchev wrote: > On 2015/11/11 22:02:22, sievers wrote: > > > indirectly ...
5 years, 1 month ago (2015-11-11 23:08:25 UTC) #6
no sievers
On 2015/11/11 23:08:25, sievers wrote: > On 2015/11/11 22:56:46, mfomitchev wrote: > > On 2015/11/11 ...
5 years, 1 month ago (2015-11-11 23:11:48 UTC) #7
Hadi
On 2015/11/11 23:11:48, sievers wrote: > operation.h: > -#include "third_party/zlib/google/zip_reader.h" > ... > +namespace zip ...
5 years, 1 month ago (2015-11-12 15:45:36 UTC) #9
mfomitchev
Awesome! LGTM
5 years, 1 month ago (2015-11-12 15:47:17 UTC) #10
Hadi
+agl@ as zlib OWNER +haven@ as OWNER of image_writer_private
5 years, 1 month ago (2015-11-12 15:47:30 UTC) #12
agl
lgtm
5 years, 1 month ago (2015-11-12 17:28:03 UTC) #13
Drew Haven
lgtm https://codereview.chromium.org/1432293003/diff/40001/chrome/browser/extensions/api/image_writer_private/operation.h File chrome/browser/extensions/api/image_writer_private/operation.h (left): https://codereview.chromium.org/1432293003/diff/40001/chrome/browser/extensions/api/image_writer_private/operation.h#oldcode211 chrome/browser/extensions/api/image_writer_private/operation.h:211: zip::ZipReader zip_reader_; Can you add a quick comment ...
5 years, 1 month ago (2015-11-16 21:19:00 UTC) #14
Hadi
https://codereview.chromium.org/1432293003/diff/40001/chrome/browser/extensions/api/image_writer_private/operation.h File chrome/browser/extensions/api/image_writer_private/operation.h (left): https://codereview.chromium.org/1432293003/diff/40001/chrome/browser/extensions/api/image_writer_private/operation.h#oldcode211 chrome/browser/extensions/api/image_writer_private/operation.h:211: zip::ZipReader zip_reader_; On 2015/11/16 21:19:00, Drew Haven wrote: > ...
5 years, 1 month ago (2015-11-16 21:33:03 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1432293003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1432293003/60001
5 years, 1 month ago (2015-11-17 15:00:18 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-17 15:06:08 UTC) #19
commit-bot: I haz the power
5 years, 1 month ago (2015-11-17 15:07:27 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/83deb42017ace10596869a7f9200cd80943492a4
Cr-Commit-Position: refs/heads/master@{#360076}

Powered by Google App Engine
This is Rietveld 408576698