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

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

Issue 2870263004: Add an about:flag to enable client-side LoFi (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after
1891 "DataReductionProxyMainMenu")}, 1891 "DataReductionProxyMainMenu")},
1892 {"enable-data-reduction-proxy-site-breakdown", 1892 {"enable-data-reduction-proxy-site-breakdown",
1893 flag_descriptions::kEnableDataReductionProxySiteBreakdownName, 1893 flag_descriptions::kEnableDataReductionProxySiteBreakdownName,
1894 flag_descriptions::kEnableDataReductionProxySiteBreakdownDescription, 1894 flag_descriptions::kEnableDataReductionProxySiteBreakdownDescription,
1895 kOsAndroid, 1895 kOsAndroid,
1896 FEATURE_VALUE_TYPE( 1896 FEATURE_VALUE_TYPE(
1897 data_reduction_proxy::features::kDataReductionSiteBreakdown)}, 1897 data_reduction_proxy::features::kDataReductionSiteBreakdown)},
1898 {"enable-offline-previews", flag_descriptions::kEnableOfflinePreviewsName, 1898 {"enable-offline-previews", flag_descriptions::kEnableOfflinePreviewsName,
1899 flag_descriptions::kEnableOfflinePreviewsDescription, kOsAndroid, 1899 flag_descriptions::kEnableOfflinePreviewsDescription, kOsAndroid,
1900 FEATURE_VALUE_TYPE(previews::features::kOfflinePreviews)}, 1900 FEATURE_VALUE_TYPE(previews::features::kOfflinePreviews)},
1901 {"enable-client-lo-fi", flag_descriptions::kEnableClientLoFiName,
1902 flag_descriptions::kEnableClientLoFiDescription, kOsAndroid,
1903 FEATURE_VALUE_TYPE(previews::features::kClientLoFi)},
1901 #endif // OS_ANDROID 1904 #endif // OS_ANDROID
1902 {"allow-insecure-localhost", flag_descriptions::kAllowInsecureLocalhost, 1905 {"allow-insecure-localhost", flag_descriptions::kAllowInsecureLocalhost,
1903 flag_descriptions::kAllowInsecureLocalhostDescription, kOsAll, 1906 flag_descriptions::kAllowInsecureLocalhostDescription, kOsAll,
1904 SINGLE_VALUE_TYPE(switches::kAllowInsecureLocalhost)}, 1907 SINGLE_VALUE_TYPE(switches::kAllowInsecureLocalhost)},
1905 {"enable-add-to-shelf", flag_descriptions::kAddToShelfName, 1908 {"enable-add-to-shelf", flag_descriptions::kAddToShelfName,
1906 flag_descriptions::kAddToShelfDescription, kOsDesktop, 1909 flag_descriptions::kAddToShelfDescription, kOsDesktop,
1907 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAddToShelf, 1910 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAddToShelf,
1908 switches::kDisableAddToShelf)}, 1911 switches::kDisableAddToShelf)},
1909 {"bypass-app-banner-engagement-checks", 1912 {"bypass-app-banner-engagement-checks",
1910 flag_descriptions::kBypassAppBannerEngagementChecksName, 1913 flag_descriptions::kBypassAppBannerEngagementChecksName,
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after
3099 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 3102 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
3100 3103
3101 const FeatureEntry* GetFeatureEntries(size_t* count) { 3104 const FeatureEntry* GetFeatureEntries(size_t* count) {
3102 *count = arraysize(kFeatureEntries); 3105 *count = arraysize(kFeatureEntries);
3103 return kFeatureEntries; 3106 return kFeatureEntries;
3104 } 3107 }
3105 3108
3106 } // namespace testing 3109 } // namespace testing
3107 3110
3108 } // namespace about_flags 3111 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698