diff options
author | sdefresne <sdefresne@chromium.org> | 2015-07-27 12:18:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-27 19:18:57 +0000 |
commit | 0f2ef35a2de53103f42a7ab62ccc07aa34481e41 (patch) | |
tree | 7e6b89bd5a67371f5ba652948ce7886782970412 /components/enhanced_bookmarks/enhanced_bookmark_features.h | |
parent | f7701e71c321e821163217db2336241d240c563b (diff) | |
download | chromium_src-0f2ef35a2de53103f42a7ab62ccc07aa34481e41.zip chromium_src-0f2ef35a2de53103f42a7ab62ccc07aa34481e41.tar.gz chromium_src-0f2ef35a2de53103f42a7ab62ccc07aa34481e41.tar.bz2 |
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}
Diffstat (limited to 'components/enhanced_bookmarks/enhanced_bookmark_features.h')
-rw-r--r-- | components/enhanced_bookmarks/enhanced_bookmark_features.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/components/enhanced_bookmarks/enhanced_bookmark_features.h b/components/enhanced_bookmarks/enhanced_bookmark_features.h new file mode 100644 index 0000000..2216573 --- /dev/null +++ b/components/enhanced_bookmarks/enhanced_bookmark_features.h @@ -0,0 +1,21 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_FEATURES_H_ +#define COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_FEATURES_H_ + +#include "build/build_config.h" + +#if defined(OS_IOS) || defined(OS_ANDROID) + +namespace enhanced_bookmarks { + +// Returns true if enhanced bookmarks is enabled. +bool IsEnhancedBookmarksEnabled(); + +} // namespace enhanced_bookmarks + +#endif + +#endif // COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_FEATURES_H_ |