Componentize enhanced_bookmark_features.{h,cc}.
commit0f2ef35a2de53103f42a7ab62ccc07aa34481e41
authorsdefresne <sdefresne@chromium.org>
Mon, 27 Jul 2015 19:18:00 +0000 (27 12:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Jul 2015 19:18:57 +0000 (27 19:18 +0000)
tree7e6b89bd5a67371f5ba652948ce7886782970412
parentf7701e71c321e821163217db2336241d240c563b
Componentize enhanced_bookmark_features.{h,cc}.

Enhanced bookmarks and the DOM distiller are (or will be) used on
iOS and android. Move the function checking whether the features
are enabled into the respective component to allow sharing the code.

Move IsEnhancedBookmarksEnabled() function to the enhanced_bookmarks
component with supporting switches.

Move IsEnableDomDistillerSet() and IsEnableSyncArticlesSet() functions
to the dom_distiller component with supporting switches.

BUG=359565

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

Cr-Commit-Position: refs/heads/master@{#340526}
32 files changed:
chrome/browser/about_flags.cc
chrome/browser/android/bookmarks/bookmarks_bridge.cc
chrome/browser/android/chrome_startup_flags.cc
chrome/browser/bookmarks/enhanced_bookmarks_features.h [deleted file]
chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc
chrome/browser/dom_distiller/profile_utils.cc
chrome/browser/dom_distiller/tab_utils_browsertest.cc
chrome/browser/sync/profile_sync_components_factory_impl.cc
chrome/browser/ui/browser_command_controller.cc
chrome/browser/ui/tab_helpers.cc
chrome/browser/ui/toolbar/wrench_menu_model.cc
chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
chrome/chrome_browser.gypi
chrome/common/chrome_switches.cc
chrome/common/chrome_switches.h
components/dom_distiller.gypi
components/dom_distiller/DEPS
components/dom_distiller/core/BUILD.gn
components/dom_distiller/core/dom_distiller_features.cc [new file with mode: 0644]
components/dom_distiller/core/dom_distiller_features.h [new file with mode: 0644]
components/dom_distiller/core/dom_distiller_switches.cc
components/dom_distiller/core/dom_distiller_switches.h
components/enhanced_bookmarks.gypi
components/enhanced_bookmarks/BUILD.gn
components/enhanced_bookmarks/DEPS
components/enhanced_bookmarks/enhanced_bookmark_features.cc [moved from chrome/browser/bookmarks/enhanced_bookmarks_features.cc with 50% similarity]
components/enhanced_bookmarks/enhanced_bookmark_features.h [new file with mode: 0644]
components/enhanced_bookmarks/enhanced_bookmark_switches.cc [new file with mode: 0644]
components/enhanced_bookmarks/enhanced_bookmark_switches.h [new file with mode: 0644]
ios/chrome/browser/experimental_flags.mm
ios/public/provider/chrome/browser/chrome_browser_provider.cc
ios/public/provider/chrome/browser/chrome_browser_provider.h