Граф коммитов

755 Коммитов

Автор SHA1 Сообщение Дата
Nico Weber 57df32e9b5 clang/win: Enable most of -Wmicrosoft.
-Wmicrosoft-unqualified-friend still fires in one place in ICU,
I'll enable it once I've fixed that.

-Wno-microsoft-enum-value doesn't look like a very useful
warning, maybe we should improve the warning instead of
enabling it.

BUG=505296
R=rnk@chromium.org

Review URL: https://codereview.chromium.org/1311693002 .

Cr-Original-Commit-Position: refs/heads/master@{#345090}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c3c872b12c094d27d5044f49d735099f54c188ea
2015-08-24 16:34:01 +00:00
jbudorick 5758310259 [Android] Suppress findbugs stderr output.
BUG=514342

Review URL: https://codereview.chromium.org/1258303003

Cr-Original-Commit-Position: refs/heads/master@{#344992}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5194d46039a269294d3e5bf7a1c827303521d79d
2015-08-22 23:34:09 +00:00
agrieve 3473d6d990 GN: Refactor android rules to use forward_variables_from()
BUG=

Review URL: https://codereview.chromium.org/1310613002

Cr-Original-Commit-Position: refs/heads/master@{#344948}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: aebc66c5ad957cb7dc07980a214fda94d13b4087
2015-08-22 01:58:47 +00:00
jbudorick 45d687597b [Android] Roll android_tools to Android M SDK.
Partially stolen from https://codereview.chromium.org/1297273003/

Android SDK tools 24.3.3 -> 24.3.4
Android Platform tools 22 -> 23
Android SDK build tools 22 -> 23
Android SDK 5.1.1 (API 22) -> 6.0 (API 23)
Android Support Library -> 23.0.0

This also rolls:
Reland x86 toolchain from NDK r10e with a fix of "-mstackrealign" flag.
Add GCM to the Google Play Services Library.

BUG=522182,521527
TBR=sievers@chromium.org
NOTRY=true

patch from issue 1297273003 at patchset 60001 (http://crrev.com/1297273003#ps60001)

Review URL: https://codereview.chromium.org/1297023003

Cr-Original-Commit-Position: refs/heads/master@{#344409}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0d414de1c4a951509b5e8a0fc75e8dbba4c0e22b
2015-08-20 02:24:45 +00:00
thakis d47f147367 gn/clang: Only pass -Wno-reserved-user-defined-literal on Linux and Android.
This matches gyp. The flag is not needed on Windows and Mac.  (It probably isn't
needed on Android either.)

BUG=263960

Review URL: https://codereview.chromium.org/1295023004

Cr-Original-Commit-Position: refs/heads/master@{#344275}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 64dff6deeae1788cdc60b5c02e82c527385dfe7a
2015-08-19 18:20:05 +00:00
mostynb c6191c8d1e pkg-config.py should use --libs instead of --libs-only-l --libs-only-L
When specifying both --libs-only-l and --libs-only-L to
pkg-config, the results from the latter are not included.
This feels like a bug in pkg-config, reported upstream:
https://bugs.freedesktop.org/show_bug.cgi?id=91689

Our pkg-config.py wrapper can use --libs instead of the
flags mentioned above- this includes flags from both but
maybe also some additional flags (eg -rdynamic).

BUG=522564

Review URL: https://codereview.chromium.org/1291803008

Cr-Original-Commit-Position: refs/heads/master@{#344260}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f5c7b1a39088d8b2f78132b5488319d986abd16a
2015-08-19 17:17:29 +00:00
dgn 70f295df23 [GN] Don't hardcode google_play_services dependencies
There is a google_play_services_library variable that should be used
instead of hardcoding the java target.

Added another such variable for resources

BUG=521624

Review URL: https://codereview.chromium.org/1299003003

Cr-Original-Commit-Position: refs/heads/master@{#344183}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6cd230bdd3ebabff123c44e01ef0384fa1ac1b2b
2015-08-19 08:53:29 +00:00
thakis cc3dd17acf clang/win: Enable -Woverloaded-virtual globally.
Previously, it was only enabled for chromium_code on Windows.

BUG=505301

Review URL: https://codereview.chromium.org/1296773002

Cr-Original-Commit-Position: refs/heads/master@{#343979}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6e4734b82f3fa0ed8fea5365ac92dde7e4c29a4f
2015-08-18 18:44:07 +00:00
mmaliszkiewicz 39f10ca449 Allow enable_hangout_services_extension overriding in gn build
BUG=

Review URL: https://codereview.chromium.org/1299543005

Cr-Original-Commit-Position: refs/heads/master@{#343871}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: efefbb817804457c48c388db8e96241d528d20ff
2015-08-18 09:57:24 +00:00
andybons 2ee65967ad Move rpath ldflags under is_component_build
The shared library flags currently being passed should only be passed in
component builds. The location of dylibs in a non-component build is already
known so it’s superfluous to specify additional search paths via rpath.

-search_paths_first is the default on ld starting with the Xcode4 toolchain.
-L. isn’t needed since the absolute path of the dylib is being specified at link time.

R=mark,dpranke,thakis
BUG=345021

Review URL: https://codereview.chromium.org/1298783003

Cr-Original-Commit-Position: refs/heads/master@{#343793}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 465929bd9eccfd0de10965867e0378eee4a24dd5
2015-08-18 02:16:07 +00:00
thakis cd1d055650 clang/win: Enable -Wswitch.
BUG=505308

Review URL: https://codereview.chromium.org/1294003002

Cr-Original-Commit-Position: refs/heads/master@{#343736}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 40b3bd7de9e9f7425b24bc5d8e6e888e9dde6af6
2015-08-17 19:35:20 +00:00
sebmarchand 3a5e12aa35 Make VS2015 component builds work on swarming.
BUG=440500

Review URL: https://codereview.chromium.org/1252353005

Cr-Original-Commit-Position: refs/heads/master@{#343482}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 568e81bce0dbf53936edfb4d54a5714749a2e619
2015-08-14 20:38:53 +00:00
dpranke 73557d9824 Add various GPU isolates for GN.
This adds support for some of test binaries needed in the
'archive_gpu_tests=true' config of a GYP build:

- content_gl_tests
- gles2_conform_tests
- gl_tests
- tab_capture_end2end_tests

There is still more work to be done (telemetry_gpu_tests,
angle_end2end_tests, angle_deqp_*_tests).

R=brettw@chromium.org
BUG=519778

Review URL: https://codereview.chromium.org/1285063002

Cr-Original-Commit-Position: refs/heads/master@{#343095}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: dbdd9d8a60cde386ab1ccab51bd2d818c5b45657
2015-08-12 21:18:58 +00:00
agrieve eb40419565 GN: Don't explicitly define __ANDROID__ now that clang defines it automatically
BUG=402625

Review URL: https://codereview.chromium.org/1284093002

Cr-Original-Commit-Position: refs/heads/master@{#343055}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 566f1e310289474839002875bf25d4321a65087d
2015-08-12 18:14:15 +00:00
erikchen cccb212479 mac, GN: Pass 10.6 as deployment target.
Previously, GN was using the sdk version as the deployment target,
which meant gn-built binaries couldn't run on OS X versions
older than 10.10 after updating the SDK to 10.10.
With this fix, mac GN matches the behavior of Mac GYP.

BUG=463170

Review URL: https://codereview.chromium.org/1285493004

Cr-Original-Commit-Position: refs/heads/master@{#342908}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e194adc1f7bdeeb500dcd357283d512651b6bf1b
2015-08-11 21:53:27 +00:00
agrieve dcbaca2584 clang: Compiler tweaks to make android build for x64
BUG=402625

Review URL: https://codereview.chromium.org/1285623003

Cr-Original-Commit-Position: refs/heads/master@{#342888}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5009c0055139d67ecf5affa2067b71013077e0b2
2015-08-11 21:03:07 +00:00
erikchen 7084979673 Reland #2: Switch the default build configuration to use the 10.10 SDK.
The first reland caused Webkit layout test errors on 10.8 and 10.9. Those
errors have been fixed.

Original issue's description:
> mac: Switch the default build configuration to use the 10.10 SDK.
>
> This change is intended to be temporary. The goal is to release a Canary
> compiled against the 10.10 SDK, and then to revert this CL.
>
> BUG=463170
>
> Committed: https://crrev.com/42ba22e0b8e87f758804537f64db23ff6438e451
> Cr-Commit-Position: refs/heads/master@{#340992}

TBR=thakis@chromium.org,amineer@chromium.org
BUG=463170, 515836

Review URL: https://codereview.chromium.org/1268803004

Cr-Original-Commit-Position: refs/heads/master@{#342870}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a9cbe267748e0360f8c994a1c7209f86f33b944f
2015-08-11 19:32:20 +00:00
agrieve e8e1d878ba GN: Use lib.unstripped rather than lib.stripped. Add a toolchain.gni
toolchain.gni introduces:
 root_shlib_dir, shlib_prefix, and shlib_extension

The original goal of this change was to put shlibs under lib/ for Linux / Android, since that's where GYP puts them. However, the lack of support for loadable_module (or more specifically - per target output directory) in GN makes this infeasible at the moment.

This change also mitigates a subtle bug where on Android the unstripped .so is used mistakenly instead of the lib.stripped/ version. It also fixes shlib's link_output being set to the unstripped .so rather than the stripped .so (on Android).

BUG=509771

Review URL: https://codereview.chromium.org/1236503002

Cr-Original-Commit-Position: refs/heads/master@{#342697}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c3cd5e6fe977af4a3c8b20ccb332896b2c888354
2015-08-10 21:18:34 +00:00
bajones d50e8232e0 Revert of Android WebVR implementation, Cardboard 0.5.5 SDK (patchset #10 id:180001 of https://codereview.chromium.org/1200303002/ )
Reason for revert:
Build config issue on ASAN bots.

Original issue's description:
> Android WebVR implementation, Cardboard 0.5.5 SDK
>
> Previously part of https://codereview.chromium.org/829803003/
>
> BUG=389343
>
> Committed: https://crrev.com/1d9c45547709e77d599c218d76317895389db129
> Cr-Commit-Position: refs/heads/master@{#342496}

TBR=jochen@chromium.org,jdduke@chromium.org,sievers@chromium.org,tedchoc@chromium.org,thakis@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=389343

Review URL: https://codereview.chromium.org/1274913004

Cr-Original-Commit-Position: refs/heads/master@{#342546}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d94a4177c90960f0f75b5fca996414e2edd0f76c
2015-08-08 23:14:08 +00:00
Nico Weber ad9103a860 clang/win: Build chromium_code with -Wunused-function
BUG=505316
R=dalecurtis@chromium.org, dcheng@chromium.org, robertshield@chromium.org

Review URL: https://codereview.chromium.org/1261953003.

Cr-Original-Commit-Position: refs/heads/master@{#342535}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0f942010a9bf8c335e5818b2ca228266b42cc725
2015-08-08 17:40:21 +00:00
sdefresne 47e1538977 Use correct linker flags for iOS release builds.
iOS uses the same linker as Mac and thus should use the same linker flags
in Release mode (is_debug=false).

Fix the following error when linking base_unittest in Release mode:

FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -stdlib=libc++ -mios-simulator-version-min=7.0 -Wl,-O1 -Wl,--gc-sections -Wl,--as-needed -o ./base_unittests.app/base_unittests -Wl,-filelist,./base_unittests.app/base_unittests.rsp  -framework UIKit -framework QuartzCore -framework OpenGLES -framework CoreFoundation -framework CoreGraphics -framework CoreText -framework Foundation
ld: unknown option: -O1

BUG=459705

Review URL: https://codereview.chromium.org/1274633004

Cr-Original-Commit-Position: refs/heads/master@{#342523}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5d2e00bce19e2fae5e1fa0419d78e92570026304
2015-08-08 08:54:10 +00:00
bajones a6c14b3d78 Android WebVR implementation, Cardboard 0.5.5 SDK
Previously part of https://codereview.chromium.org/829803003/

BUG=389343

Review URL: https://codereview.chromium.org/1200303002

Cr-Original-Commit-Position: refs/heads/master@{#342496}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1d9c45547709e77d599c218d76317895389db129
2015-08-08 00:58:14 +00:00
dpranke a18e0f23af patch from chinmaygarde@ to make progress on mac, ios.
I've taken ad591c629a
and merged it onto Chromium ToT, with a few lint and other cleanups,
and one fix to make sure that Mac still compiled (which may have broken
iOS, haven't tested yet).

R=brettw@chromium.org, sdfresne@chromium.org
BUG=459705
CQ_EXTRA_TRYBOTS=tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

Review URL: https://codereview.chromium.org/1250913002

Cr-Original-Commit-Position: refs/heads/master@{#342297}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2a29462a04dabad3fc20dc922227c46b36459912
2015-08-07 05:23:38 +00:00
brettw 17ef9d03a2 Add /bigobj to all builds on Windows.
This is set in GYP for all compiler invocations. In GN it was only set in one place in content. This brings GN closer to GYP.

Review URL: https://codereview.chromium.org/1269253003

Cr-Original-Commit-Position: refs/heads/master@{#342230}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2d5b2103b272a6ad9ad183e710ff82835226c18b
2015-08-06 23:22:18 +00:00
agrieve e6ae034018 GN (Android): Make is_clang work for (at least for arm32)
There seem to be more compiler flags to tweak for other target
architectures, but with this I could at least build & run chrome_apk
with is_clang=true

BUG=402625

Review URL: https://codereview.chromium.org/1258923012

Cr-Original-Commit-Position: refs/heads/master@{#342227}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 91d9b7ee4e51168ef413265e33b8fe25253a1758
2015-08-06 23:19:30 +00:00
petermayo 4a5267f489 Make which gold and binutils used configurable.
This allows us to specify the ones from the bundled tools in ChromiumOS, for example.

BUG=517497
TEST=None

Review URL: https://codereview.chromium.org/1273133002

Cr-Original-Commit-Position: refs/heads/master@{#342208}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 11736e158e8dca479603988a804a6d93b65c4ec7
2015-08-06 21:54:27 +00:00
brettw e57109eb3e Pull ICU, rename component build GN variables.
This ICU roll only renames component_mode -> is_component_build

Update other users of the component_mode string to is_component_build.

Rename the declaration to be local to BUILDCONFIG.gn (prefixed with '_').

Removes a bitrotted GN unit test around component handing (it wasn't
testing anything useful any more since we removed the built-in
component function).

Review URL: https://codereview.chromium.org/1275583002

Cr-Original-Commit-Position: refs/heads/master@{#342204}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2a08763777c45ca4e7a00a846266bbfed31ef673
2015-08-06 21:39:37 +00:00
davidben bab4d3e89c Remove a few more remnants of the internal remoting plugin.
BUG=510271

Review URL: https://codereview.chromium.org/1266923005

Cr-Original-Commit-Position: refs/heads/master@{#341908}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7776f2bce4099de007033efa1fa5f01a4d9d137b
2015-08-05 16:08:04 +00:00
danduong 4f376434d0 Add a new gyp flag: fieldtrial_testing_like_official_build
When set to 1, this will NOT activate the field trial test specified
in the fieldtrial_testing_config_*.json.  This gives Chromium
packagers the flexibility to disable field trial testing config for
their package as we have on our Google Chrome build.

BUG=515686

Review URL: https://codereview.chromium.org/1266113002

Cr-Original-Commit-Position: refs/heads/master@{#341845}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3d2e44fe0e7994b083504c249b654e20d76228e0
2015-08-05 02:12:41 +00:00
ochang 2178fa5e93 Support Android x86 ASan build.
R=inferno@chromium.org,thakis@chromium.org
BUG=514423
NOPRESUBMIT=true
NOTRY=true

Review URL: https://codereview.chromium.org/1263213002

Cr-Original-Commit-Position: refs/heads/master@{#341829}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: acd65abca005ec9680d4dab36e6055f1add48396
2015-08-05 00:08:45 +00:00
slan e886f11b08 [Chromecast] Allow |enable_pepper_cdms| to be set in gn args.
Chromecast builds need to explicitly set |enable_browser_cdms| to true
and |enable_pepper_cdms| to false. Rather than introduce a global
is_chromecast variable, as we have in GYP, allow |enable_pepper_cdms| to
be set in args.gn.

BUG= b/17615224

Review URL: https://codereview.chromium.org/1266693005

Cr-Original-Commit-Position: refs/heads/master@{#341776}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9bacb78d7d0a453ff5d23df7fd30b7b75cded17d
2015-08-04 20:13:29 +00:00
dylanking b7095ce5d4 Rename spellchecker preprocessor flag
Renamed USE_PLATFORM_SPELLCHECKER preprocessor flag to
USE_BROWSER_SPELLCHECKER to more accurately reflect the fact
that the browser side contains other services such as red
underlines that will be leveraged by any spellchecker.

BUG=415302

Review URL: https://codereview.chromium.org/1263423006

Cr-Original-Commit-Position: refs/heads/master@{#341771}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 990eb97f091d9719b2061de67b7e585f6a967d8b
2015-08-04 19:58:45 +00:00
brettw 299e90170d Use new GN features in the build.
Uses forward_variables_from for some obvious cases not including the Android build, and use the template() function in the component() definition.

Remove uses of component_mode since I want to delete that.

Review URL: https://codereview.chromium.org/1265263002

Cr-Original-Commit-Position: refs/heads/master@{#341767}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a09029884e02a3c027a485877886cf75969f6b3d
2015-08-04 19:52:35 +00:00
brettw 42294ed674 Rename iterator debugging flag in GN.
Convert from "disable"=true to "enable"=false for clarity.

Add hints to GN build for debugging.

Removed the !is_android check in the iterator debugging. This is redundant with the is_linux check (is_linux used to be set for Android which is why this code got written).

Review URL: https://codereview.chromium.org/1256783007

Cr-Original-Commit-Position: refs/heads/master@{#341608}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e134d6c0f0f778251e38615bda7b241f077c5455
2015-08-03 21:06:32 +00:00
sherouk 5bd3ad7d8f Fix gn gen for iOS.
BUG=459705

Review URL: https://codereview.chromium.org/1267583003

Cr-Original-Commit-Position: refs/heads/master@{#341530}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 53f0f1ac021043f7aba990be4a44de21e18eebe8
2015-08-03 16:00:09 +00:00
hajimehoshi 6905b024bd Remove the Finch test 'CLD1VsCLD2'
The Finch test 'CDL1VsCLD2' is a test to make sure that CLD2 is not
worse than CLD1 in terms of performance or accuracy. This test is no
longer executed on any platforms. Let's remove this for code health.

CLD version '0' is used to represent to use the Finch trial, and this
CL removes the cases of version 0 from gn, gypi and C++ files.

BUG=515358

Review URL: https://codereview.chromium.org/1259883007

Cr-Original-Commit-Position: refs/heads/master@{#341496}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 92a5d22913c2ac3082d57d4eefa9911961588b41
2015-08-03 07:22:27 +00:00
dmurph 11383f7d8d Revert of Reland #1: Switch the default build configuration to use the 10.10 SDK. (patchset #1 id:1 of https://codereview.chromium.org/1257643005/)
Reason for revert:
I believe this is causing a lot of issues with layout, no idea why though.
https://code.google.com/p/chromium/issues/detail?id=515836

Original issue's description:
> Reland #1: Switch the default build configuration to use the 10.10 SDK.
>
> All known problems have been fixed since the first attempt to land this CL.
>
> Original issue's description:
> > mac: Switch the default build configuration to use the 10.10 SDK.
> >
> > This change is intended to be temporary. The goal is to release a Canary
> > compiled against the 10.10 SDK, and then to revert this CL.
> >
> > BUG=463170
> >
> > Committed: https://crrev.com/42ba22e0b8e87f758804537f64db23ff6438e451
> > Cr-Commit-Position: refs/heads/master@{#340992}
>
> TBR=thakis@chromium.org,amineer@chromium.org
> BUG=463170
>
> Committed: https://crrev.com/345c0cf47947f209e628941b38d76dca90aee49d
> Cr-Commit-Position: refs/heads/master@{#341261}

TBR=amineer@chromium.org,thakis@chromium.org,erikchen@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=463170

Review URL: https://codereview.chromium.org/1266603007

Cr-Original-Commit-Position: refs/heads/master@{#341306}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2f573334aa30d92dc04dd35fab41ed4658b87b36
2015-07-31 10:08:25 +00:00
erikchen a5859168d2 Reland #1: Switch the default build configuration to use the 10.10 SDK.
All known problems have been fixed since the first attempt to land this CL.

Original issue's description:
> mac: Switch the default build configuration to use the 10.10 SDK.
>
> This change is intended to be temporary. The goal is to release a Canary
> compiled against the 10.10 SDK, and then to revert this CL.
>
> BUG=463170
>
> Committed: https://crrev.com/42ba22e0b8e87f758804537f64db23ff6438e451
> Cr-Commit-Position: refs/heads/master@{#340992}

TBR=thakis@chromium.org,amineer@chromium.org
BUG=463170

Review URL: https://codereview.chromium.org/1257643005

Cr-Original-Commit-Position: refs/heads/master@{#341261}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 345c0cf47947f209e628941b38d76dca90aee49d
2015-07-31 01:32:14 +00:00
erikchen b703680415 Revert of mac: Switch the default build configuration to use the 10.10 SDK. (patchset #2 id:20001 of https://codereview.chromium.org/1246743003/)
Reason for revert:
Causes gclient runhooks to fail on bots that don't have the 10.10 SDK (even though they don't need to compile)

Original issue's description:
> mac: Switch the default build configuration to use the 10.10 SDK.
>
> This change is intended to be temporary. The goal is to release a Canary
> compiled against the 10.10 SDK, and then to revert this CL.
>
> BUG=463170
>
> Committed: https://crrev.com/42ba22e0b8e87f758804537f64db23ff6438e451
> Cr-Commit-Position: refs/heads/master@{#340992}

TBR=thakis@chromium.org,amineer@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=463170

Review URL: https://codereview.chromium.org/1254123003

Cr-Original-Commit-Position: refs/heads/master@{#341003}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 53e1ddcd0f7bd0934157e149903feb1893e9aac7
2015-07-29 22:43:07 +00:00
erikchen 86f62f2890 mac: Switch the default build configuration to use the 10.10 SDK.
This change is intended to be temporary. The goal is to release a Canary
compiled against the 10.10 SDK, and then to revert this CL.

BUG=463170

Review URL: https://codereview.chromium.org/1246743003

Cr-Original-Commit-Position: refs/heads/master@{#340992}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 42ba22e0b8e87f758804537f64db23ff6438e451
2015-07-29 21:38:11 +00:00
fredlebel b6d9f8cb3f Laying the groundwork for targeting WinRT for WebRTC.
Now supporting various flavors of WinRT in the target_os argument.
Setting compiler and linker flags so cc files are compiled
to support C++/CX syntax.

This is part of a larger effort to port WebRTC to WinRT.

Review URL: https://codereview.chromium.org/1150183009

Cr-Original-Commit-Position: refs/heads/master@{#340893}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 56f81e32556d513af513eac0710f2e85877ffa3b
2015-07-29 15:50:36 +00:00
brettw 9035c04d17 Re-enable precompiled headers in GN on Windows.
This fixes the incremental build error by disabling the warning (see the code for a detailed description).

It adds conditions for goma and official builds which match GYP.

Review URL: https://codereview.chromium.org/1261953002

Cr-Original-Commit-Position: refs/heads/master@{#340769}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 48d359b13c0f60e444280afc03df8dfeb8ebe41d
2015-07-28 21:27:19 +00:00
pkasting f53acec75f Reland of Enable C4018 globally for the GN build, and disable per-target. (patchset #1 id:1 of https://codereview.chromium.org/1257583007/)
Reason for revert:
I believe the GN build failure was caused by a different patch of brettw's.

Original issue's description:
> Revert of Enable C4018 globally for the GN build, and disable per-target. (patchset #4 id:60001 of https://codereview.chromium.org/1246103007/)
>
> Reason for revert:
> Speculative revert based on windows gn bots failing with
>
> http://build.chromium.org/p/chromium.win/builders/Win8%20GN%20%28dbg%29/builds/10113
>
> FAILED: ninja -t msvc -e environment.x64 -- E:\b\build\goma/gomacc.exe "E:\b\depot_tools\win_toolchain\vs2013_files\VC\bin\amd64/cl.exe" /nologo /showIncludes /FC @obj/base/base/precompile.c.obj.rsp /c ../../build/precompile.cc /Foobj/base/base/precompile.c.obj /Fdobj/base/base_c.pdb
> e:\b\build\slave\win_x64_gn__dbg_\build\src\build\precompile.cc(8) : error C2220: warning treated as error - no 'object' file generated
> e:\b\build\slave\win_x64_gn__dbg_\build\src\build\precompile.cc(8) : warning C4206: nonstandard extension used : translation unit is empty
> ninja: build stopped: subcommand failed.
>
> In theory this warning shouldn't have affected other warnings, but there are no other clear candidates.
>
> Original issue's description:
> > Enable C4018 globally for the GN build, and disable per-target.
> >
> > This matches what the GYP build does.
> >
> > BUG=398202
> > TEST=none
> >
> > Committed: https://crrev.com/d408e1965f8e03629738039289ab7779c42a318c
> > Cr-Commit-Position: refs/heads/master@{#340590}
>
> TBR=brettw@chromium.org,erg@chromium.org,pkasting@chromium.org
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=398202
>
> Committed: https://crrev.com/4bf2ca554347fc20e1649e5ff4cf700d9fbd713a
> Cr-Commit-Position: refs/heads/master@{#340623}

TBR=brettw@chromium.org,erg@chromium.org,ccameron@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=398202

Review URL: https://codereview.chromium.org/1259253006

Cr-Original-Commit-Position: refs/heads/master@{#340745}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0d79de12da6b9fcb6f2b6337064637bd1ad05ba5
2015-07-28 19:22:00 +00:00
brucedawson 64278e8d93 Add support for /DEBUG:FASTLINK to gyp and gn files.
VC++ 2015 has a /DEBUG:FASTLINK option that can significantly
improve link performance on developer machines. Compared to normal
VS 2015 links it reduces elapsed time by 33-55% and reduces peak
working set by 65-90%. PDB sizes are reduced by 65-72%.

/DEBUG:FASTLINK works by having PDB files reference symbols in
.obj and .lib files instead of copying the debug information. This
means that PDBs only work on the machine they were created on, and
only as long as the .obj and .lib files exist, but this constraint
matches local-developer-builds very nicely.

/DEBUG:FASTLINK has an (undocumented) restriction that it is disabled
if /PROFILE is selected.

For GYP builds this feature is enabled with GYP_DEFINES=win_fastlink=1
For gn builds this feature is enabled with is_win_fastlink = true in
args.gn.

This switch is not supported on VC++ 2013

This connect bug requests a tool to de-fastlink a PDB so that it can
be shared/deployed for debugging on other machines:
https://connect.microsoft.com/VisualStudio/feedback/details/1598471

BUG=440500
R=jochen@chromium.org

Review URL: https://codereview.chromium.org/1254723012

Cr-Original-Commit-Position: refs/heads/master@{#340733}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 24a5806209d95faea058684b03a2d5f42c18ecae
2015-07-28 18:37:23 +00:00
brettw cac3c5e5da Annotate large GN targets for precompiled headers
Adds the precompiled header config to most large-ish targets in the build, but keeps the config a no-op (so no precompiled headers will be used but this can bw switched with a one-line change).

Removes Windows files from the precompiled header. This does not seem to affect the build speed much because most Chrome files don't depend on Windows any more. And windows.h injects typedefs and defines that conflict with some third party libraries and prevent using precompiled headers for those targets or any target that includes them.

I counted ~50 files or bigger as large. The 50 file threshold is based on some previous approximate measurements (since the precompile step is an extra per-target compile, it can actually make small targets compile slower).

For borderline cases, I added the precompiled header flag if I thought it was likely to have more files added, and didn't add it if I thought the target was likely to be static.

This is a reland of https://codereview.chromium.org/1250273002/ with the config disabled for easier re-landing and iterating
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
TBR=dpranke

Review URL: https://codereview.chromium.org/1258273004

Cr-Original-Commit-Position: refs/heads/master@{#340728}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bc8b2a244ab981b264a86f5f2a64464089e05e32
2015-07-28 18:25:26 +00:00
ccameron 941664b07e Revert of Enable C4018 globally for the GN build, and disable per-target. (patchset #4 id:60001 of https://codereview.chromium.org/1246103007/)
Reason for revert:
Speculative revert based on windows gn bots failing with

http://build.chromium.org/p/chromium.win/builders/Win8%20GN%20%28dbg%29/builds/10113

FAILED: ninja -t msvc -e environment.x64 -- E:\b\build\goma/gomacc.exe "E:\b\depot_tools\win_toolchain\vs2013_files\VC\bin\amd64/cl.exe" /nologo /showIncludes /FC @obj/base/base/precompile.c.obj.rsp /c ../../build/precompile.cc /Foobj/base/base/precompile.c.obj /Fdobj/base/base_c.pdb
e:\b\build\slave\win_x64_gn__dbg_\build\src\build\precompile.cc(8) : error C2220: warning treated as error - no 'object' file generated
e:\b\build\slave\win_x64_gn__dbg_\build\src\build\precompile.cc(8) : warning C4206: nonstandard extension used : translation unit is empty
ninja: build stopped: subcommand failed.

In theory this warning shouldn't have affected other warnings, but there are no other clear candidates.

Original issue's description:
> Enable C4018 globally for the GN build, and disable per-target.
>
> This matches what the GYP build does.
>
> BUG=398202
> TEST=none
>
> Committed: https://crrev.com/d408e1965f8e03629738039289ab7779c42a318c
> Cr-Commit-Position: refs/heads/master@{#340590}

TBR=brettw@chromium.org,erg@chromium.org,pkasting@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=398202

Review URL: https://codereview.chromium.org/1257583007

Cr-Original-Commit-Position: refs/heads/master@{#340623}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4bf2ca554347fc20e1649e5ff4cf700d9fbd713a
2015-07-28 01:07:10 +00:00
dpranke 1de4e8edbc Revert "Add precompiled headers to GN build for large targets."
This reverts commit 8f3218985dde74063ccc362da47803be163f3165.

It looks like this may have broken incremental builds on Win.

TBR=brettw@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Review URL: https://codereview.chromium.org/1256223003

Cr-Original-Commit-Position: refs/heads/master@{#340620}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7ba63a918a644773af77dc657792d6440e8afbc1
2015-07-28 00:56:41 +00:00
pkasting 21be4c139f Enable C4018 globally for the GN build, and disable per-target.
This matches what the GYP build does.

BUG=398202
TEST=none

Review URL: https://codereview.chromium.org/1246103007

Cr-Original-Commit-Position: refs/heads/master@{#340590}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d408e1965f8e03629738039289ab7779c42a318c
2015-07-27 22:55:41 +00:00
brettw b888f8feb6 Add precompiled headers to GN build for large targets.
Turns on precompiled header support in the GN build on Windows, and adds the precompiled header config to most large-ish targets in the build.

Removes Windows files from the precompiled header. This does not seem to affect the build speed much because most Chrome files don't depend on Windows any more. And windows.h injects typedefs and defines that conflict with some third party libraries and prevent using precompiled headers for those targets or any target that includes them.

I counted ~50 files or bigger as large. The 50 file threshold is based on some previous approximate measurements (since the precompile step is an extra per-target compile, it can actually make small targets compile slower).

For borderline cases, I added the precompiled header flag if I thought it was likely to have more files added, and didn't add it if I thought the target was likely to be static.

CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Review URL: https://codereview.chromium.org/1250273002

Cr-Original-Commit-Position: refs/heads/master@{#340535}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8f3218985dde74063ccc362da47803be163f3165
2015-07-27 19:46:54 +00:00
thakis ffb6a55f84 clang/win/asan: Remove /fallback and enable warnings-as-errors.
This removes the last case where we still needed /fallback.

BUG=82385

Review URL: https://codereview.chromium.org/1259813002

Cr-Original-Commit-Position: refs/heads/master@{#340533}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0fa9d4fad367939eb0ac68b86914c6d86339da3c
2015-07-27 19:44:41 +00:00
tfarina 3573875d47 build/config: No need to handle direct_dependent_configs in GN build.
direct_dependent_configs is the deprecated name for public_configs,
and public_configs is already handled.

gn-dev thread:
https://groups.google.com/a/chromium.org/d/topic/gn-dev/h9N85MIx_Bk/discussion

BUG=None
TEST=gn gen out-gn/Release --args='is_debug=false is_component_build=false symbol_level=1'
R=brettw@chromium.org

Review URL: https://codereview.chromium.org/1261523002

Cr-Original-Commit-Position: refs/heads/master@{#340524}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 65c461c8e9c02230fda24736ef77eedf51fa675c
2015-07-27 19:10:41 +00:00
brucedawson 0d143573c1 Disable C4995 warning about #pragma deprecated
We already disable warning C4996 (function was declared deprecated) but
with the Windows 10 SDK we also have to disable the very similar warning
C4995 (function was marked as #pragma deprecated). It's not clear why
there are two mechanisms with two different warnings, but there you are.

These are the warnings I saw:

printing\backend\win_helper.h(152): warning C4995: 'StartXpsPrintJob': name was marked as #pragma deprecated
printing\backend\win_helper.h(160): warning C4995: 'IXpsPrintJob': name was marked as #pragma deprecated
printing\backend\win_helper.cc(69): warning C4995: 'IXpsPrintJob': name was marked as #pragma deprecated
printing\backend\win_helper.cc(299): warning C4995: 'StartXpsPrintJob': name was marked as #pragma deprecated
printing\backend\win_helper.cc(307): warning C4995: 'IXpsPrintJob': name was marked as #pragma deprecated

R=thakis@chromium.org
BUG=491424

Review URL: https://codereview.chromium.org/1249113004

Cr-Original-Commit-Position: refs/heads/master@{#340157}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3e5c69bd1c1e8230dc4e481d91d293bb4cee19b9
2015-07-23 20:42:22 +00:00
brettw a6e79aa363 Work on Windows GN allocator.
Hooks up the allocator shim on Windows. The GN build uses the Windows heap like GYP does.

This makes tcmalloc actually compile on Windows if you manually request it, although it doesn't actually seem to work correctly. I added an assert noting this if you try to set the flag on Windows. Note that this is never run by default on GYP and we may never want it.

This sets the ALLOCATOR_SHIM for the one media file that uses it.

Review URL: https://codereview.chromium.org/1246083005

Cr-Original-Commit-Position: refs/heads/master@{#339798}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5444db5ddf7eb68a5241e84f8f179c6d2739aaa5
2015-07-22 00:43:16 +00:00
brettw aceefa533a Preliminary support for Windows manifests in the GN build.
Adds manifest data for content shell. The result matches the GYP build.

Attaches a default manifest to all tests in the GN build. The GYP build's tests have manifests that specify elevation only. In GN it also specifies Windows and common control compat that matches what we ship with Chrome.

BUG=510612
TBR=dpranke@chromium.org
Reland of https://codereview.chromium.org/1240893004/ with no cloud print or remoting changes

Review URL: https://codereview.chromium.org/1238293005

Cr-Original-Commit-Position: refs/heads/master@{#339709}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2e2220c02f2bbd3116b7b718aad627f37ad59b92
2015-07-21 18:57:19 +00:00
avayvod 33e9850b44 [MediaRouter] The minimal change to make everything build on Android.
BUG=412331

NOTRY=true
NOTREECHECKS=true

Review URL: https://codereview.chromium.org/1228863005

Cr-Original-Commit-Position: refs/heads/master@{#339708}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6f828083bd41d61e23a6ebe89288a9b3126ae586
2015-07-21 18:45:24 +00:00
Nico Weber 42d869161d Revert "Preliminary support for Windows manifests in the GN build."
This reverts https://codereview.chromium.org/1240893004/ , it broke
building remoting in the gyp build (see comment on the review).

TBR=brettw@chromium.org

Review URL: https://codereview.chromium.org/1249723002.

Cr-Original-Commit-Position: refs/heads/master@{#339669}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 13e350d3f0ff78bd0e6b96c83ffbd428d695acac
2015-07-21 17:02:40 +00:00
brettw 0d6d43867d Preliminary support for Windows manifests in the GN build.
Adds manifest data for content shell. The result matches the GYP build.

Attaches a default manifest to all tests in the GN build. The GYP build's tests have manifests that specify elevation only. In GN it also specifies Windows and common control compat that matches what we ship with Chrome.

Moved the common control compat files that were duplicated to a shared place in build/win, update cloud_print and remoting which had their own copies to use this shared one.

BUG=510612

Review URL: https://codereview.chromium.org/1240893004

Cr-Original-Commit-Position: refs/heads/master@{#339663}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c34cad367a0557d8b029fb81d04cc37b5979fee0
2015-07-21 16:17:11 +00:00
brettw 9229c81420 Add Syzygy support to Windows GN build.
BUG=511498

Review URL: https://codereview.chromium.org/1234033005

Cr-Original-Commit-Position: refs/heads/master@{#339566}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 66e3feabd73622adccda533917c3441f6d0395a2
2015-07-20 23:52:46 +00:00
thakis 7a08eea3ef clang/win: Enable -Wunused-local-typedef
BUG=411648
TBR=jam

Review URL: https://codereview.chromium.org/1236863009

Cr-Original-Commit-Position: refs/heads/master@{#339470}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 803f983242c850986820e2f8de8a2f403086bea9
2015-07-20 18:11:42 +00:00
shreeram.k 070e0ac98e ATK accessibility support for web content on Aura Linux.
This CL adds Accessibility support to Chromium browser for linux platform. It
successfully exposes an AX Tree for content. You can test this with chrome://accessibility.

This is just the initial CL to get the accessibility support on Linux. Other interfaces need
to be implemented to make it useful for accessibility tools.

ATK_COMPONENT & ATK_VALUE Interfaces has been implemented in this CL.

Content:
<html>
    <body>
        <input type="checkbox">
    </body>
</html>

AX Tree:
[document web] enabled focusable focused id=1

++[section] enabled id=4

++++[check box] enabled focusable id=5

BUG=463671

Review URL: https://codereview.chromium.org/1128183010

Cr-Original-Commit-Position: refs/heads/master@{#339435}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 792fba03a8605accd9016cc0a6fb4a7ce52dedc6
2015-07-20 11:44:26 +00:00
abarth 39eeda2984 Only use the .cr.so product extension on Android in the component build
This change matches what GYP does.

R=brettw@chromium.org

Review URL: https://codereview.chromium.org/1237393006

Cr-Original-Commit-Position: refs/heads/master@{#339398}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6d3db12b8b7d097a1ce6ea2c138698436c17aa4b
2015-07-18 21:20:21 +00:00
dpranke 41d89b70b1 Fix the GN "no_rtti" config for objective-c++ files.
TBR=brettw@chromium.org
NOTRY=true
BUG=511323

Review URL: https://codereview.chromium.org/1228873007

Cr-Original-Commit-Position: refs/heads/master@{#339360}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 89bd22d39e6a50c82b9440a2f864256f2f005f7b
2015-07-18 00:08:51 +00:00
brettw d2a40f2c4e Pass corresponding C/C++ flags to ObjC/C++
A GN change for precompiled headers meant that cflags_c aren't passed automaticall to the Objective C compiler, and cflags_cc aren't passed to the Objective C++ compiler.

Copies the c/cc flags over to the objc/objcc variables in the compiler setup.

TBR=dpranke@chromium.org
BUG=511323

Review URL: https://codereview.chromium.org/1233683003

Cr-Original-Commit-Position: refs/heads/master@{#339348}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 839f4802a610edc83e5c6bd9c178208b3715324c
2015-07-17 22:51:51 +00:00
Nico Weber 48a90de3e0 clang/win: Add back /fallback for asan builds for now.
In asan builds, a few translation units still fall back to CL, see
http://llvm.org/PR24167

Also update the gn files to pass /WX (warnings-as-errors) in 32-bit non-asan
clang builds.

BUG=82385
TBR=rnk

Review URL: https://codereview.chromium.org/1229083005.

Cr-Original-Commit-Position: refs/heads/master@{#339309}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 28d32d89e5081223fab2982dc97252fd5150e721
2015-07-17 20:04:37 +00:00
petermayo 671da1ed9e Refactor incompatible pointer type to a config
It makes it easier to fix the logic in a single place,
for example when porting a new cross compiler.

BUG=None
TEST=gn gen generates the same ninja files.
TBR=brettw@chromium.org

Review URL: https://codereview.chromium.org/1233913002

Cr-Original-Commit-Position: refs/heads/master@{#339257}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d68ffb8b4bf017ec49d2a6fbb46b9e46299c4f16
2015-07-17 15:35:56 +00:00
dylanking 8271d0e887 Refactored spellcheck_message_filter to be generic.
The header is now meant to be an interface for any
system that would like to use its own spellchecker
instead of the hunspell library.

Split the implementation into two source files, one for mac and one for android.
The android implementation is just method stubs for now.

Updated related build files and #include references.

Part 1 of a 3 part breakdown of https://codereview.chromium.org/1204293003.
The breakdown will also include some changes to the original CL.

BUG=415302

Review URL: https://codereview.chromium.org/1230933002

Cr-Original-Commit-Position: refs/heads/master@{#339195}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 684453c5ecb33796629becb77b64591d939e4458
2015-07-17 01:24:11 +00:00
rnk f84232cd60 Remove /fallback flag from 32-bit clang-cl invocations and enable -Werror
Clang can now compile all of Chromium in 32-bit as well as 64-bit without warnings.

R=thakis@chromium.org
BUG=82385

Review URL: https://codereview.chromium.org/1235033008

Cr-Original-Commit-Position: refs/heads/master@{#339178}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b5d0897658e728ea186c057ec414d53176913b2f
2015-07-17 00:00:27 +00:00
yusufo 6156b2d33d Revert of Make instrumentation test dependency on a support APK explicit (patchset #8 id:130001 of https://codereview.chromium.org/1208483004/)
Reason for revert:
Cast tests failing on ToT after this.

Original issue's description:
> Make instrumentation test dependency on a support APK explicit
>
> Add an argument (support_apk_name) to the GYP and GN
> instrumentation_test_apk targets to provide a support APK. The
> argument is optional, but when present, the build will fail if the
> APK is not installable
>
> BUG=501797
>
> Committed: https://crrev.com/0ac9fec88bf9a042410192b304ae1bc252df8aa7
> Cr-Commit-Position: refs/heads/master@{#339046}

TBR=jbudorick@chromium.org,cjhopman@chromium.org,dgn@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=501797

Review URL: https://codereview.chromium.org/1237983004

Cr-Original-Commit-Position: refs/heads/master@{#339170}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 72c598c090ae4f8df7c55bae7acc8dfea46ba0c6
2015-07-16 23:41:02 +00:00
Nico Weber f63f888d30 win/clang: Roll clang 239674:242415
32-bit SEH, member pointers with virtual bases, inttypes.h warning fix...

BUG=509256,82385
R=hans@chromium.org

Committed: 2776ee378e

Review URL: https://codereview.chromium.org/1234713002 .

Cr-Original-Commit-Position: refs/heads/master@{#339098}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0d1b17f598c72f8672c5223439735ece5e6860f0
2015-07-16 19:41:43 +00:00
dgn 96733264c4 Make instrumentation test dependency on a support APK explicit
Add an argument (support_apk_name) to the GYP and GN
instrumentation_test_apk targets to provide a support APK. The
argument is optional, but when present, the build will fail if the
APK is not installable

BUG=501797

Review URL: https://codereview.chromium.org/1208483004

Cr-Original-Commit-Position: refs/heads/master@{#339046}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0ac9fec88bf9a042410192b304ae1bc252df8aa7
2015-07-16 16:27:21 +00:00
sdefresne 31676fb3fd Componentize chrome/browser/rlz
Add new class RLZTrackerDelegate that abstract access to embedder
specific singletons and informations and provide an implementation for
Chrome based on the previous implementation.

Split rlz_unittest.cc in tests of the RLZTracker and Chrome
implementation of the RLZTrackerDelegate interface and move the
RLZTracker tests into the component.

Add a new gyp/gn variable "enable_rlz_support". This variable is true on
the platforms that support RLZ (currently Windows, Mac, iOS and
ChromeOS). Use it to build library and unit tests even when the RLZ
support is not enabled in the Chrome binary (this is still controlled by
"enable_rlz" and depends on the branding).

Enable the tests on iOS and convert rlz_tracker_ios.mm to a C++ file.

TEST=Run unit_tests and components_unittests on a platform that supports
RLZ (Windows, Mac, iOS or ChromeOS) and check that they pass. Then build
Chrome with "enable_rlz" and manually checks that RLZ are sent with
searches as expected.

BUG=504841,508148

Review URL: https://codereview.chromium.org/1212163011

Cr-Original-Commit-Position: refs/heads/master@{#339002}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d967d55cf7a0f78e6ace9ec681d2d082e631810b
2015-07-16 08:35:10 +00:00
brucedawson c2f6ff4ae1 Disable VS 2015 warning that fires on compiler-generated constructors.
C4589 fires when a derived class illegally calls the constructor for
its virtual base class. Unfortunately it fires inappropriately.

If Base has a pure-virtual function and Derived is dllexported and
derives virtually from the base class then the compiler-generated
copy constructor will illegally initialize the virtual base class.
The warning is:
warning C4589 : Constructor of abstract class 'Derived' ignores
initializer for virtual base class 'Base'
  note : This diagnostic occurred in the compiler generated function
'Derived::Derived(const Derived &)'

While this warning can be potentially useful (it found bad code in
crbug.com/510497) it mostly fires inappropriately. Here is repro code:

class __declspec(dllexport) Base {
  virtual void SomeFunction() = 0;
};

class __declspec(dllexport) Derived : virtual public Base {
  // Deleting the assignment operator avoids the warning
  //Derived(const Derived&) = delete;

  // Overriding SomeFunction avoids the warning
  //void SomeFunction() override {};
};

The bug has been reported.

R=thakis@chromium.org
BUG=440500

Review URL: https://codereview.chromium.org/1234253003

Cr-Original-Commit-Position: refs/heads/master@{#338964}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d5b9a8565675b8969dd34b6aa765adcd443b5527
2015-07-16 00:44:28 +00:00
thakis 3599286daf Revert of win/clang: Roll clang 239674:242130 (patchset #3 id:40001 of https://codereview.chromium.org/1234713002/)
Reason for revert:
Looks like this caused http://crbug.com/510555

Original issue's description:
> win/clang: Roll clang 239674:242130
>
> 32-bit SEH, member pointers with virtual bases, inttypes.h warning fix...
>
> BUG=509256,82385
> R=hans@chromium.org
>
> Committed: 2776ee378e

TBR=hans@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=509256,82385

Review URL: https://codereview.chromium.org/1240813002

Cr-Original-Commit-Position: refs/heads/master@{#338891}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c17fbc86ef53cb21dc03cfab09d12be3e1cb1586
2015-07-15 19:46:20 +00:00
brettw a49104b8f7 Move build flags to .gni file.
Add comments to build config about target setup.

Review URL: https://codereview.chromium.org/1168223003

Cr-Original-Commit-Position: refs/heads/master@{#338865}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fd1c6721afa39afa7f9d8a36f3faa683061726e9
2015-07-15 16:12:20 +00:00
Nico Weber 9cd1272615 win/clang: Roll clang 239674:242130
32-bit SEH, member pointers with virtual bases, inttypes.h warning fix...

BUG=509256,82385
R=hans@chromium.org

Review URL: https://codereview.chromium.org/1234713002 .

Cr-Original-Commit-Position: refs/heads/master@{#338860}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2776ee378ee7d309d5d837e1e4405460403556ff
2015-07-15 15:02:28 +00:00
agrieve 5fd2f11ff5 GN: Fix support errorprone and java_binary
Also adds errorprone to the default set of targets.

BUG=509156

Review URL: https://codereview.chromium.org/1233453010

Cr-Original-Commit-Position: refs/heads/master@{#338803}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 40ba686a6a6cd4387759376bebe505298742ca50
2015-07-15 02:10:35 +00:00
davidben 1093713190 Switch Linux and CrOS to BoringSSL.
This is a reland of https://codereview.chromium.org/1210073014/ with fixes to
Linux expected shared library dependencies per
http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Linux%20x64/builds/2784/steps/compile/logs/stdio

On the dpkg side, the inferred minimum NSS version goes down because we no
longer use PK11_SignWithSymKey. (The actual version is still overwritten in
build.sh.)

On the rpm side, we no longer use any function from libplc4.so (there used to
be a PL_strdup call), so the linker prunes it.

If this causes problems, please revert first and ask questions
later.

BUG=462040
TBR=rsleevi@chromium.org,thakis@chromium.org

Review URL: https://codereview.chromium.org/1231723003

Cr-Original-Commit-Position: refs/heads/master@{#338775}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a4f7d7df73d96bd453b6c6a7f68f8de13f2b421b
2015-07-14 23:56:57 +00:00
hongchan f664bc4224 Revert of Switch Linux and CrOS to BoringSSL. (patchset #8 id:130001 of https://codereview.chromium.org/1210073014/)
Reason for revert:
This CL seems to cause the issue in Chromium build system.

https://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Linux%20x64/builds/2784

Original issue's description:
> Switch Linux and CrOS to BoringSSL.
>
> If this causes problems, please revert first and ask questions
> later.
>
> BUG=462040
>
> Committed: https://crrev.com/df391ba1d19134bb0a6e895a4a33f1af4932545d
> Cr-Commit-Position: refs/heads/master@{#338713}

TBR=rsleevi@chromium.org,thakis@chromium.org,davidben@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=462040

Review URL: https://codereview.chromium.org/1235673005

Cr-Original-Commit-Position: refs/heads/master@{#338725}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fd2634ebfc39feec8210daa1ed1b9d0f8cb6b8b4
2015-07-14 20:06:49 +00:00
davidben 88ea4d3bc1 Switch Linux and CrOS to BoringSSL.
If this causes problems, please revert first and ask questions
later.

BUG=462040

Review URL: https://codereview.chromium.org/1210073014

Cr-Original-Commit-Position: refs/heads/master@{#338713}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: df391ba1d19134bb0a6e895a4a33f1af4932545d
2015-07-14 17:58:08 +00:00
agrieve 4186705ae6 GN (android): Append ".cr" to component .so's to avoid zygote lib collisions
With this, ChromePublic now launches with is_component_build = true

BUG=500882

Review URL: https://codereview.chromium.org/1236543004

Cr-Original-Commit-Position: refs/heads/master@{#338612}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a2daf08ffddf4549160f3925383b457a2eb03c7f
2015-07-14 01:31:15 +00:00
agrieve cb0663129c Android GN: Include libstdc++.so when doing a component build
BUG=500882

Review URL: https://codereview.chromium.org/1231723002

Cr-Original-Commit-Position: refs/heads/master@{#338512}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 16c7c9e6dd49f0214c6de31fa0c5cf929bc0e12c
2015-07-13 15:32:13 +00:00
sammc 34f544c2fd clang/win: Build without -Wno-pointer-sign.
BUG=505303

Review URL: https://codereview.chromium.org/1223363004

Cr-Original-Commit-Position: refs/heads/master@{#338464}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5ebd5b30965afd047b3f3feb50da9f0fe78e71f6
2015-07-13 02:30:02 +00:00
Daniel Cheng 309352c95e Enable -Wextra-tokens on win clang.
This warns on code of the form:
#endif RANDOM_TEXT
MIDL generated code tends to emit code in this pattern, so suppress
this warning when compiling MIDL generated files.

BUG=504663
R=thakis@chromium.org
TBR=dtseng, robertshield, weitaosu

Review URL: https://codereview.chromium.org/1233453008

Cr-Original-Commit-Position: refs/heads/master@{#338435}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: be8d6f52672bf61324b2ac988ef7776ade9d1628
2015-07-11 05:18:17 +00:00
agrieve e486eebf36 GN: Fix input not defined by deps issue with //build/android:sun_tools_java
BUG=

Review URL: https://codereview.chromium.org/1236643002

Cr-Original-Commit-Position: refs/heads/master@{#338428}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0004c4777790d38df47621342790500788d1623b
2015-07-11 02:52:05 +00:00
thakis 07ed8fa4c0 Revert of Revert of Clang on Windows: Remove -Wno-unused-variable. (patchset #1 id:1 of https://codereview.chromium.org/1228093005/)
Reason for revert:
might be better now?

Original issue's description:
> Revert of Clang on Windows: Remove -Wno-unused-variable. (patchset #3 id:40001 of https://codereview.chromium.org/1226573002/)
>
> Reason for revert:
> Broke Clang build on Windows according to http://crbug.com/505319#c30.
>
> Those warnings should be fixed before relanding.
>
> Original issue's description:
> > Clang on Windows: Remove -Wno-unused-variable.
> >
> > Unused variables are now errors. However, since lots of third-party code
> > has unused variables, added a blanket suppression to all third-party
> > code.
> >
> > BUG=505319
> >
> > Committed: https://crrev.com/3371ccbd9d83e1031c5891520e88acbc9c1859a0
> > Cr-Commit-Position: refs/heads/master@{#338242}
>
> TBR=garykac@chromium.org,thakis@chromium.org
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=505319
>
> Committed: https://crrev.com/ff68a3ba6f2dc9b226047b3355c135f73352570e
> Cr-Commit-Position: refs/heads/master@{#338253}

TBR=garykac@chromium.org,mgiuca@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=505319

Review URL: https://codereview.chromium.org/1232543005

Cr-Original-Commit-Position: refs/heads/master@{#338395}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5a503569600d998528568b06c297cbe2d0e9bcb4
2015-07-10 23:31:15 +00:00
Nico Weber 7b1414627f clang/win: Take another stab at building with -Wunused-private-field.
BUG=505317
TBR=benwells@chromium.org

Review URL: https://codereview.chromium.org/1226373006 .

Cr-Original-Commit-Position: refs/heads/master@{#338375}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 28bc85d60a219a75f0b283982965c92221678018
2015-07-10 22:00:21 +00:00
agrieve 478e342ca0 Move Android version stamping from an exec_script -> build rule
BUG=

Review URL: https://codereview.chromium.org/1229073003

Cr-Original-Commit-Position: refs/heads/master@{#338292}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5f3dec8ead48312eea0b4a27329c4faf231333c7
2015-07-10 15:19:05 +00:00
mgiuca daccf36224 Revert of Clang on Windows: Remove -Wno-unused-variable. (patchset #3 id:40001 of https://codereview.chromium.org/1226573002/)
Reason for revert:
Broke Clang build on Windows according to http://crbug.com/505319#c30.

Those warnings should be fixed before relanding.

Original issue's description:
> Clang on Windows: Remove -Wno-unused-variable.
>
> Unused variables are now errors. However, since lots of third-party code
> has unused variables, added a blanket suppression to all third-party
> code.
>
> BUG=505319
>
> Committed: https://crrev.com/3371ccbd9d83e1031c5891520e88acbc9c1859a0
> Cr-Commit-Position: refs/heads/master@{#338242}

TBR=garykac@chromium.org,thakis@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=505319

Review URL: https://codereview.chromium.org/1228093005

Cr-Original-Commit-Position: refs/heads/master@{#338253}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ff68a3ba6f2dc9b226047b3355c135f73352570e
2015-07-10 07:53:40 +00:00
mgiuca dd357ce2df Clang on Windows: Remove -Wno-unused-variable.
Unused variables are now errors. However, since lots of third-party code
has unused variables, added a blanket suppression to all third-party
code.

BUG=505319

Review URL: https://codereview.chromium.org/1226573002

Cr-Original-Commit-Position: refs/heads/master@{#338242}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3371ccbd9d83e1031c5891520e88acbc9c1859a0
2015-07-10 04:55:30 +00:00
l.gombos 776a6198ea ChromeOS implies Linux
(OS=="linux" or chromeos==1) can be folded into just a
simple *OS=="linux") test because chromeos builds assume
that OS is always set to linux.

Review URL: https://codereview.chromium.org/1012483004

Cr-Original-Commit-Position: refs/heads/master@{#338239}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 810079fac67ffb02451cdf3c776011aa373b2fd4
2015-07-10 04:27:55 +00:00
dcheng f9f4691792 Revert of Re-add -Wno-missing-braces on win clang. (patchset #1 id:1 of https://codereview.chromium.org/1222203012/)
Reason for revert:
ANGLE has rolled in https://crrev.com/01b5c82d06fcbddd7556ea848ba803b72c61811c

Original issue's description:
> Re-add -Wno-missing-braces on win clang.
>
> ANGLE needs a roll to fix one last instance of this warning, but the
> roll is currently blocked. Disable this warning again until ANGLE can be
> successfully rolled to fda3ec747c3dca037b961c7f8c04a81766f37007.
>
> BUG=505297
> R=thakis@chromium.org
>
> Committed: c38a1f7103

TBR=thakis@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=505297

Review URL: https://codereview.chromium.org/1226143007

Cr-Original-Commit-Position: refs/heads/master@{#338234}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 67c725e3ec44956a961ab8795efb3fcb369f4fe7
2015-07-10 03:09:26 +00:00
Nico Weber f5536a2728 clang/win: Add back -Wno-unused-private-field.
The world isn't ready for this yet, see bug. This reverts parts of
https://codereview.chromium.org/1215643003/

BUG=505317
TBR=benwells@chromium.org

Review URL: https://codereview.chromium.org/1232033002.

Cr-Original-Commit-Position: refs/heads/master@{#338228}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e04cb993b677648cb79889cbcd5b228cfd091f34
2015-07-10 02:56:44 +00:00
sammc be6f1a2229 clang/win: Build without -Wno-incompatible-pointer-types.
It defines YY_USE_CONST when building mesa to fix this warning, disables
-Wincompatible-pointer-types for the other third-party libraries that
trigger it and fixes some underspecified dependencies in
third_party/libwebp.

BUG=504696

Review URL: https://codereview.chromium.org/1226583002

Cr-Original-Commit-Position: refs/heads/master@{#338227}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c98d446e81bcc18cf4241325c8719ccdc0b7abf3
2015-07-10 02:51:59 +00:00
thakis 90974799e1 roll clang 239765:241602
This will hopefully fix symbolization on the asan/android bots.

This also brings in somewhat major changes in how the asan runtime is
built on OS X; hopefully it won't break the mac asan bots.

libcxx(abi) grew CMake files, which is great – except it adds the libcxx(abi)
tests to `check-all`, and they don't pass in bootstrap mode on OS X.
So delete libcxx(abi) before starting the main build. (It's only needed on OS X
for bundling libcxx with the compiler so it can run on 10.6, and that's all done
after the first build.)

This also adds support for __nullable and Objective-C generics.

BUG=502974,499448
TBR=hans
NOPRESUBMIT=true

Review URL: https://codereview.chromium.org/1229653005

Cr-Original-Commit-Position: refs/heads/master@{#338220}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: dd2dc4c908b9c05b33a1aa54761603f9f5bf96f5
2015-07-10 02:43:54 +00:00
sammc 832c38f0be clang/win: Build without -Wno-reorder.
BUG=505304

Review URL: https://codereview.chromium.org/1234483002

Cr-Original-Commit-Position: refs/heads/master@{#338218}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c36d3c7ef4f7d38d97133d2d0536d6f5e94c2fb0
2015-07-10 02:42:28 +00:00
Nico Weber 128046a2d0 Revert "Componentize chrome/browser/rlz"
This reverts commit 311a46585ee5b77486ef42d947bc7cc7566558b1 / #338040,
https://codereview.chromium.org/1212163011/.  The change broke tests in official
builds (http://crbug.com/508659).

BUG=504841, 508148, 508659
TBR=sdefresne@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

Review URL: https://codereview.chromium.org/1229933005 .

Cr-Original-Commit-Position: refs/heads/master@{#338150}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 66706d26418b305f48c7124039a804a7c826a463
2015-07-09 21:21:10 +00:00
benwells 7b1c0a00cb Remove -Wno-unused-private-field clang warning suppression.
BUG=505317

Review URL: https://codereview.chromium.org/1215643003

Cr-Original-Commit-Position: refs/heads/master@{#338115}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ef1895a8c18b7e8055ec7b480073f75125dbb705
2015-07-09 19:35:14 +00:00
benwells a6947fa5f8 Removed -Wno-msvc-include suppression.
BUG=505299

Review URL: https://codereview.chromium.org/1227173004

Cr-Original-Commit-Position: refs/heads/master@{#338041}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c811a8d34b3633bcd2f08951edb01e31a376dca6
2015-07-09 15:07:26 +00:00
sdefresne 1b7df0fadb Componentize chrome/browser/rlz
Add new class RLZTrackerDelegate that abstract access to embedder
specific singletons and informations and provide an implementation for
Chrome based on the previous implementation.

Split rlz_unittest.cc in tests of the RLZTracker and Chrome
implementation of the RLZTrackerDelegate interface and move the
RLZTracker tests into the component.

Add a new gyp/gn variable "enable_rlz_support". This variable is true on
the platforms that support RLZ (currently Windows, Mac, iOS and
ChromeOS). Use it to build library and unit tests even when the RLZ
support is not enabled in the Chrome binary (this is still controlled by
"enable_rlz" and depends on the branding).

Enable the tests on iOS and convert rlz_tracker_ios.mm to a C++ file.

TEST=Run unit_tests and components_unittests on a platform that supports
RLZ (Windows, Mac, iOS or ChromeOS) and check that they pass. Then build
Chrome with "enable_rlz" and manually checks that RLZ are sent with
searches as expected.

BUG=504841,508148

Review URL: https://codereview.chromium.org/1212163011

Cr-Original-Commit-Position: refs/heads/master@{#338040}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 311a46585ee5b77486ef42d947bc7cc7566558b1
2015-07-09 14:56:44 +00:00
lionel.g.landwerlin 44d77f068f ui: accessibility: remove -Wunused-function for Atk
Newer version of GLib define *get_instance_private symbols in
the G_DEFINE_TYPE macros. These symbols might be unused in cases
where a GObject class doesn't access its instances private data,
triggering -Wunused-function warnings.

BUG=504375
TEST=compile with gn on linux with GLib >= 2.37

Review URL: https://codereview.chromium.org/1216153005

Cr-Original-Commit-Position: refs/heads/master@{#338001}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 991e92d77c0b9f46c6a5d3f6facd12861c9e1828
2015-07-09 08:46:52 +00:00