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

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

Issue 578883004: Added flag to enable the data reduction proxy alternative (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 #endif 1907 #endif
1908 #if defined(OS_CHROMEOS) 1908 #if defined(OS_CHROMEOS)
1909 { 1909 {
1910 "wake-on-packets", 1910 "wake-on-packets",
1911 IDS_FLAGS_WAKE_ON_PACKETS_NAME, 1911 IDS_FLAGS_WAKE_ON_PACKETS_NAME,
1912 IDS_FLAGS_WAKE_ON_PACKETS_DESCRIPTION, 1912 IDS_FLAGS_WAKE_ON_PACKETS_DESCRIPTION,
1913 kOsCrOSOwnerOnly, 1913 kOsCrOSOwnerOnly,
1914 SINGLE_VALUE_TYPE(chromeos::switches::kWakeOnPackets) 1914 SINGLE_VALUE_TYPE(chromeos::switches::kWakeOnPackets)
1915 }, 1915 },
1916 #endif // OS_CHROMEOS 1916 #endif // OS_CHROMEOS
1917 {
1918 "enable-data-reduction-proxy-alt",
1919 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_ALTERNATIVE_NAME,
1920 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_ALTERNATIVE_DESCRIPTION,
1921 kOsAndroid,
1922 SINGLE_VALUE_TYPE(data_reduction_proxy::switches::
1923 kEnableDataReductionProxyAlt)
1924 },
1925
1917 // NOTE: Adding new command-line switches requires adding corresponding 1926 // NOTE: Adding new command-line switches requires adding corresponding
1918 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1927 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
1919 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1928 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1920 }; 1929 };
1921 1930
1922 const Experiment* experiments = kExperiments; 1931 const Experiment* experiments = kExperiments;
1923 size_t num_experiments = arraysize(kExperiments); 1932 size_t num_experiments = arraysize(kExperiments);
1924 1933
1925 // Stores and encapsulates the little state that about:flags has. 1934 // Stores and encapsulates the little state that about:flags has.
1926 class FlagsState { 1935 class FlagsState {
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2493 } 2502 }
2494 2503
2495 const Experiment* GetExperiments(size_t* count) { 2504 const Experiment* GetExperiments(size_t* count) {
2496 *count = num_experiments; 2505 *count = num_experiments;
2497 return experiments; 2506 return experiments;
2498 } 2507 }
2499 2508
2500 } // namespace testing 2509 } // namespace testing
2501 2510
2502 } // namespace about_flags 2511 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698