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

Unified Diff: chrome/browser/extensions/extension_util.cc

Issue 2765083002: Hardcode extensions::util::IsNewBookmarkAppsEnabled() to true, except on Mac. (Closed)
Patch Set: remove logging Created 3 years, 9 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/browser/extensions/extension_util.cc
diff --git a/chrome/browser/extensions/extension_util.cc b/chrome/browser/extensions/extension_util.cc
index ba4c4704ca4749d34ab67cb7b071730c675ae23c..402ba975b09e803803717fc5abe22eb3a7ffa1b9 100644
--- a/chrome/browser/extensions/extension_util.cc
+++ b/chrome/browser/extensions/extension_util.cc
@@ -18,6 +18,7 @@
#include "chrome/browser/extensions/shared_module_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/extensions/extension_icon_source.h"
+#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/sync_helper.h"
#include "components/variations/variations_associated_data.h"
@@ -330,11 +331,9 @@ const gfx::ImageSkia& GetDefaultExtensionIcon() {
bool IsNewBookmarkAppsEnabled() {
#if defined(OS_MACOSX)
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableNewBookmarkApps);
+ return base::FeatureList::IsEnabled(features::kBookmarkApps);
#else
- return !base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableNewBookmarkApps);
+ return true;
#endif
}

Powered by Google App Engine
This is Rietveld 408576698