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

Unified Diff: chrome/chrome_browser.gypi

Issue 10031002: Allow extension APIs to be compiled out. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add extensions_api_resources resources to windows targets Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/chrome_browser.gypi
diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi
index 8f8d350c9af81cd214814de9fe513064b3df91a4..3e05d0cb9ee09f667d04656f27e6d83a1a853302 100644
--- a/chrome/chrome_browser.gypi
+++ b/chrome/chrome_browser.gypi
@@ -85,8 +85,6 @@
# * code below browser/extensions
'browser/about_flags.cc',
'browser/about_flags.h',
- 'browser/accessibility/accessibility_extension_api.cc',
- 'browser/accessibility/accessibility_extension_api.h',
'browser/accessibility/accessibility_extension_api_constants.cc',
'browser/accessibility/accessibility_extension_api_constants.h',
'browser/accessibility/accessibility_events.cc',
@@ -308,8 +306,6 @@
'browser/bookmarks/bookmark_storage.h',
'browser/bookmarks/bookmark_utils.cc',
'browser/bookmarks/bookmark_utils.h',
- 'browser/bookmarks/bookmark_extension_api.cc',
- 'browser/bookmarks/bookmark_extension_api.h',
'browser/bookmarks/bookmark_extension_api_constants.cc',
'browser/bookmarks/bookmark_extension_api_constants.h',
'browser/bookmarks/bookmark_extension_helpers.cc',
@@ -491,8 +487,6 @@
'browser/chromeos/extensions/file_browser_event_router.h',
'browser/chromeos/extensions/file_browser_notifications.cc',
'browser/chromeos/extensions/file_browser_notifications.h',
- 'browser/chromeos/extensions/file_browser_private_api.cc',
- 'browser/chromeos/extensions/file_browser_private_api.h',
'browser/chromeos/extensions/file_handler_util.cc',
'browser/chromeos/extensions/file_handler_util.h',
'browser/chromeos/extensions/file_manager_util.cc',
@@ -501,8 +495,6 @@
'browser/chromeos/extensions/input_method_event_router.h',
'browser/chromeos/extensions/media_player_event_router.cc',
'browser/chromeos/extensions/media_player_event_router.h',
- 'browser/chromeos/extensions/offers_private_api.cc',
- 'browser/chromeos/extensions/offers_private_api.h',
'browser/chromeos/external_metrics.cc',
'browser/chromeos/external_metrics.h',
'browser/chromeos/external_protocol_dialog.cc',
@@ -728,8 +720,6 @@
'browser/chromeos/login/wizard_screen.h',
'browser/chromeos/media/media_player.cc',
'browser/chromeos/media/media_player.h',
- 'browser/chromeos/media/media_player_extension_api.cc',
- 'browser/chromeos/media/media_player_extension_api.h',
'browser/chromeos/mobile_config.cc',
'browser/chromeos/mobile_config.h',
'browser/chromeos/net/cros_network_change_notifier_factory.cc',
@@ -932,8 +922,6 @@
'browser/download/chrome_download_manager_delegate.h',
'browser/download/download_crx_util.cc',
'browser/download/download_crx_util.h',
- 'browser/download/download_extension_api.cc',
- 'browser/download/download_extension_api.h',
'browser/download/download_extensions.cc',
'browser/download/download_extensions.h',
'browser/download/download_file_picker.cc',
@@ -1082,8 +1070,6 @@
'browser/history/history_backend.h',
'browser/history/history_database.cc',
'browser/history/history_database.h',
- 'browser/history/history_extension_api.cc',
- 'browser/history/history_extension_api.h',
'browser/history/history_marshaling.h',
'browser/history/history_notifications.cc',
'browser/history/history_notifications.h',
@@ -1129,8 +1115,6 @@
'browser/history/top_sites_cache.h',
'browser/history/top_sites_database.cc',
'browser/history/top_sites_database.h',
- 'browser/history/top_sites_extension_api.cc',
- 'browser/history/top_sites_extension_api.h',
'browser/history/url_database.cc',
'browser/history/url_database.h',
'browser/history/url_index_private_data.cc',
@@ -1236,8 +1220,6 @@
'browser/infobars/infobar_container.h',
'browser/infobars/infobar_delegate.cc',
'browser/infobars/infobar_delegate.h',
- 'browser/infobars/infobar_extension_api.cc',
- 'browser/infobars/infobar_extension_api.h',
'browser/infobars/infobar_tab_helper.cc',
'browser/infobars/infobar_tab_helper.h',
'browser/instant/instant_commit_type.h',
@@ -1827,8 +1809,6 @@
'browser/resources_util.h',
'browser/rlz/rlz.cc',
'browser/rlz/rlz.h',
- 'browser/rlz/rlz_extension_api.cc',
- 'browser/rlz/rlz_extension_api.h',
'browser/safe_browsing/bloom_filter.cc',
'browser/safe_browsing/bloom_filter.h',
'browser/safe_browsing/browser_feature_extractor.cc',
@@ -1952,8 +1932,6 @@
'browser/speech/chrome_speech_recognition_manager_delegate.h',
'browser/speech/chrome_speech_recognition_preferences.cc',
'browser/speech/chrome_speech_recognition_preferences.h',
- 'browser/speech/extension_api/tts_extension_api.cc',
- 'browser/speech/extension_api/tts_extension_api.h',
'browser/speech/extension_api/tts_extension_api_chromeos.cc',
'browser/speech/extension_api/tts_extension_api_constants.cc',
'browser/speech/extension_api/tts_extension_api_constants.h',
@@ -1964,10 +1942,6 @@
'browser/speech/extension_api/tts_extension_api_platform.cc',
'browser/speech/extension_api/tts_extension_api_platform.h',
'browser/speech/extension_api/tts_extension_api_win.cc',
- 'browser/speech/extension_api/tts_engine_extension_api.cc',
- 'browser/speech/extension_api/tts_engine_extension_api.h',
- 'browser/speech/speech_input_extension_api.cc',
- 'browser/speech/speech_input_extension_api.h',
'browser/speech/speech_input_extension_manager.cc',
'browser/speech/speech_input_extension_manager.h',
'browser/speech/speech_input_extension_notification.cc',
@@ -3985,6 +3959,37 @@
'<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc',
],
'conditions': [
+ ['enable_extensions==1', {
+ 'sources': [
+ # Only extension API implementations should go here.
+ 'browser/accessibility/accessibility_extension_api.cc',
+ 'browser/accessibility/accessibility_extension_api.h',
+ 'browser/bookmarks/bookmark_extension_api.cc',
+ 'browser/bookmarks/bookmark_extension_api.h',
+ 'browser/chromeos/extensions/file_browser_private_api.cc',
+ 'browser/chromeos/extensions/file_browser_private_api.h',
+ 'browser/chromeos/extensions/offers_private_api.cc',
+ 'browser/chromeos/extensions/offers_private_api.h',
+ 'browser/chromeos/media/media_player_extension_api.cc',
+ 'browser/chromeos/media/media_player_extension_api.h',
+ 'browser/download/download_extension_api.cc',
+ 'browser/download/download_extension_api.h',
+ 'browser/history/history_extension_api.cc',
+ 'browser/history/history_extension_api.h',
+ 'browser/history/top_sites_extension_api.cc',
+ 'browser/history/top_sites_extension_api.h',
+ 'browser/infobars/infobar_extension_api.cc',
+ 'browser/infobars/infobar_extension_api.h',
+ 'browser/rlz/rlz_extension_api.cc',
+ 'browser/rlz/rlz_extension_api.h',
+ 'browser/speech/extension_api/tts_extension_api.cc',
+ 'browser/speech/extension_api/tts_extension_api.h',
+ 'browser/speech/extension_api/tts_engine_extension_api.cc',
+ 'browser/speech/extension_api/tts_engine_extension_api.h',
+ 'browser/speech/speech_input_extension_api.cc',
+ 'browser/speech/speech_input_extension_api.h',
+ ],
+ }],
['enable_background==0', {
'sources/': [
['exclude', '^browser/background/'],
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_handler.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698