extensions: Check |enable_extensions| flag before depending on extension code.
commit46709b27b2caa9a4203eef168ac11291ec8d2834
authorsadrul <sadrul@chromium.org>
Wed, 10 Jun 2015 06:09:34 +0000 (9 23:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 10 Jun 2015 06:10:15 +0000 (10 06:10 +0000)
tree6c2eae3cced25395b1add48c1e911ae663fbecd2
parent0ef928ab222a4ffe3b32b278190c31b534e30cd9
extensions: Check |enable_extensions| flag before depending on extension code.

Avoid depending on (or including) extensions related code when enable_extensions
gyp/gn flag is not set. This fixes 'gn gen' for android with toolkit_views turned
on.

BUG=488576

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

Cr-Commit-Position: refs/heads/master@{#333690}
apps/BUILD.gn
apps/apps.gypi
chrome/browser/ui/BUILD.gn
chrome/chrome_browser_ui.gypi