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

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

Issue 1455333004: Add "q=preview" directive on main frame requests on poor networks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@deciderAddLoFiHeader
Patch Set: thestig comments Created 5 years 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 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after
1776 IDS_FLAGS_DISABLE_RESOLVE_TIMEZONE_BY_GEOLOCATION_NAME, 1776 IDS_FLAGS_DISABLE_RESOLVE_TIMEZONE_BY_GEOLOCATION_NAME,
1777 IDS_FLAGS_DISABLE_RESOLVE_TIMEZONE_BY_GEOLOCATION_DESCRIPTION, 1777 IDS_FLAGS_DISABLE_RESOLVE_TIMEZONE_BY_GEOLOCATION_DESCRIPTION,
1778 kOsCrOS, 1778 kOsCrOS,
1779 SINGLE_VALUE_TYPE(chromeos::switches::kDisableTimeZoneTrackingOption)}, 1779 SINGLE_VALUE_TYPE(chromeos::switches::kDisableTimeZoneTrackingOption)},
1780 #endif // defined(OS_CHROMEOS) 1780 #endif // defined(OS_CHROMEOS)
1781 {"data-reduction-proxy-lo-fi", 1781 {"data-reduction-proxy-lo-fi",
1782 IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_NAME, 1782 IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_NAME,
1783 IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_DESCRIPTION, 1783 IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_DESCRIPTION,
1784 kOsAll, 1784 kOsAll,
1785 MULTI_VALUE_TYPE(kDataReductionProxyLoFiChoices)}, 1785 MULTI_VALUE_TYPE(kDataReductionProxyLoFiChoices)},
1786 {"enable-data-reduction-proxy-lo-fi-preview",
1787 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_LO_FI_PREVIEW_NAME,
1788 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_LO_FI_PREVIEW_DESCRIPTION,
1789 kOsAll,
1790 SINGLE_VALUE_TYPE(
1791 data_reduction_proxy::switches::kEnableDataReductionProxyLoFiPreview)},
Alexei Svitkine (slow) 2015/11/24 18:57:06 Given this is a new flag, I suggest using the base
megjablon 2015/11/24 19:38:11 For organization purposes, I'd like to the keep th
1786 {"clear-data-reduction-proxy-data-savings", 1792 {"clear-data-reduction-proxy-data-savings",
1787 IDS_FLAGS_DATA_REDUCTION_PROXY_RESET_SAVINGS_NAME, 1793 IDS_FLAGS_DATA_REDUCTION_PROXY_RESET_SAVINGS_NAME,
1788 IDS_FLAGS_DATA_REDUCTION_PROXY_RESET_SAVINGS_DESCRIPTION, 1794 IDS_FLAGS_DATA_REDUCTION_PROXY_RESET_SAVINGS_DESCRIPTION,
1789 kOsAll, 1795 kOsAll,
1790 SINGLE_VALUE_TYPE( 1796 SINGLE_VALUE_TYPE(
1791 data_reduction_proxy::switches::kClearDataReductionProxyDataSavings)}, 1797 data_reduction_proxy::switches::kClearDataReductionProxyDataSavings)},
1792 {"enable-data-reduction-proxy-config-client", 1798 {"enable-data-reduction-proxy-config-client",
1793 IDS_FLAGS_DATA_REDUCTION_PROXY_CONFIG_CLIENT_NAME, 1799 IDS_FLAGS_DATA_REDUCTION_PROXY_CONFIG_CLIENT_NAME,
1794 IDS_FLAGS_DATA_REDUCTION_PROXY_CONFIG_CLIENT_DESCRIPTION, 1800 IDS_FLAGS_DATA_REDUCTION_PROXY_CONFIG_CLIENT_DESCRIPTION,
1795 kOsAll, 1801 kOsAll,
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
2914 FlagsState::GetInstance()->SetFeatureEntries(entries, count); 2920 FlagsState::GetInstance()->SetFeatureEntries(entries, count);
2915 } 2921 }
2916 2922
2917 const FeatureEntry* GetFeatureEntries(size_t* count) { 2923 const FeatureEntry* GetFeatureEntries(size_t* count) {
2918 return FlagsState::GetInstance()->GetFeatureEntries(count); 2924 return FlagsState::GetInstance()->GetFeatureEntries(count);
2919 } 2925 }
2920 2926
2921 } // namespace testing 2927 } // namespace testing
2922 2928
2923 } // namespace about_flags 2929 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | components/data_reduction_proxy/content/browser/content_lofi_decider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698