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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 2944283002: Replace --add-to-shelf flag with kAppBanners feature. (Closed)
Patch Set: Self nit Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after
1978 {"enable-offline-previews", flag_descriptions::kEnableOfflinePreviewsName, 1978 {"enable-offline-previews", flag_descriptions::kEnableOfflinePreviewsName,
1979 flag_descriptions::kEnableOfflinePreviewsDescription, kOsAndroid, 1979 flag_descriptions::kEnableOfflinePreviewsDescription, kOsAndroid,
1980 FEATURE_VALUE_TYPE(previews::features::kOfflinePreviews)}, 1980 FEATURE_VALUE_TYPE(previews::features::kOfflinePreviews)},
1981 {"enable-client-lo-fi", flag_descriptions::kEnableClientLoFiName, 1981 {"enable-client-lo-fi", flag_descriptions::kEnableClientLoFiName,
1982 flag_descriptions::kEnableClientLoFiDescription, kOsAndroid, 1982 flag_descriptions::kEnableClientLoFiDescription, kOsAndroid,
1983 FEATURE_VALUE_TYPE(previews::features::kClientLoFi)}, 1983 FEATURE_VALUE_TYPE(previews::features::kClientLoFi)},
1984 #endif // OS_ANDROID 1984 #endif // OS_ANDROID
1985 {"allow-insecure-localhost", flag_descriptions::kAllowInsecureLocalhostName, 1985 {"allow-insecure-localhost", flag_descriptions::kAllowInsecureLocalhostName,
1986 flag_descriptions::kAllowInsecureLocalhostDescription, kOsAll, 1986 flag_descriptions::kAllowInsecureLocalhostDescription, kOsAll,
1987 SINGLE_VALUE_TYPE(switches::kAllowInsecureLocalhost)}, 1987 SINGLE_VALUE_TYPE(switches::kAllowInsecureLocalhost)},
1988 {"enable-add-to-shelf", flag_descriptions::kAddToShelfName, 1988 #if !defined(OS_ANDROID)
Matt Giuca 2017/06/22 01:40:38 Why !defined(OS_ANDROID)? You already have kOsDes
benwells 2017/06/22 05:57:48 As discussed it's needed as the feature doesn't ex
1989 flag_descriptions::kAddToShelfDescription, kOsDesktop, 1989 {"enable-app-banners", flag_descriptions::kAppBannersName,
1990 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAddToShelf, 1990 flag_descriptions::kAppBannersDescription, kOsDesktop,
1991 switches::kDisableAddToShelf)}, 1991 FEATURE_VALUE_TYPE(features::kAppBanners)},
1992 #endif
1992 {"bypass-app-banner-engagement-checks", 1993 {"bypass-app-banner-engagement-checks",
1993 flag_descriptions::kBypassAppBannerEngagementChecksName, 1994 flag_descriptions::kBypassAppBannerEngagementChecksName,
1994 flag_descriptions::kBypassAppBannerEngagementChecksDescription, kOsAll, 1995 flag_descriptions::kBypassAppBannerEngagementChecksDescription, kOsAll,
1995 SINGLE_VALUE_TYPE(switches::kBypassAppBannerEngagementChecks)}, 1996 SINGLE_VALUE_TYPE(switches::kBypassAppBannerEngagementChecks)},
1996 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName, 1997 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
1997 flag_descriptions::kSyncSandboxDescription, kOsAll, 1998 flag_descriptions::kSyncSandboxDescription, kOsAll,
1998 SINGLE_VALUE_TYPE_AND_VALUE( 1999 SINGLE_VALUE_TYPE_AND_VALUE(
1999 switches::kSyncServiceURL, 2000 switches::kSyncServiceURL,
2000 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")}, 2001 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
2001 #if !defined(OS_ANDROID) 2002 #if !defined(OS_ANDROID)
(...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after
3312 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 3313 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
3313 3314
3314 const FeatureEntry* GetFeatureEntries(size_t* count) { 3315 const FeatureEntry* GetFeatureEntries(size_t* count) {
3315 *count = arraysize(kFeatureEntries); 3316 *count = arraysize(kFeatureEntries);
3316 return kFeatureEntries; 3317 return kFeatureEntries;
3317 } 3318 }
3318 3319
3319 } // namespace testing 3320 } // namespace testing
3320 3321
3321 } // namespace about_flags 3322 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/banners/app_banner_manager_browsertest.cc » ('j') | chrome/browser/flag_descriptions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698