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

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

Issue 14273007: Add a switch to Chromium to enable/disable 'image/webp' accept header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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 <string.h> 7 #include <string.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <iterator> 10 #include <iterator>
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 kOsAndroid, 1344 kOsAndroid,
1345 MULTI_VALUE_TYPE(kSimpleCacheBackendChoices) 1345 MULTI_VALUE_TYPE(kSimpleCacheBackendChoices)
1346 }, 1346 },
1347 { 1347 {
1348 "enable-tcp-fast-open", 1348 "enable-tcp-fast-open",
1349 IDS_FLAGS_ENABLE_TCP_FAST_OPEN_NAME, 1349 IDS_FLAGS_ENABLE_TCP_FAST_OPEN_NAME,
1350 IDS_FLAGS_ENABLE_TCP_FAST_OPEN_DESCRIPTION, 1350 IDS_FLAGS_ENABLE_TCP_FAST_OPEN_DESCRIPTION,
1351 kOsLinux | kOsCrOS | kOsAndroid, 1351 kOsLinux | kOsCrOS | kOsAndroid,
1352 SINGLE_VALUE_TYPE(switches::kEnableTcpFastOpen) 1352 SINGLE_VALUE_TYPE(switches::kEnableTcpFastOpen)
1353 }, 1353 },
1354 {
1355 "enable-webp-in-accept-header",
1356 IDS_FLAGS_ENABLE_WEBP_IN_ACCEPT_HEADER_NAME,
1357 IDS_FLAGS_ENABLE_WEBP_IN_ACCEPT_HEADER_DESCRIPTION,
1358 kOsAll,
1359 SINGLE_VALUE_TYPE(switches::kEnableWebPInAcceptHeader)
1360 },
1354 }; 1361 };
1355 1362
1356 const Experiment* experiments = kExperiments; 1363 const Experiment* experiments = kExperiments;
1357 size_t num_experiments = arraysize(kExperiments); 1364 size_t num_experiments = arraysize(kExperiments);
1358 1365
1359 // Stores and encapsulates the little state that about:flags has. 1366 // Stores and encapsulates the little state that about:flags has.
1360 class FlagsState { 1367 class FlagsState {
1361 public: 1368 public:
1362 FlagsState() : needs_restart_(false) {} 1369 FlagsState() : needs_restart_(false) {}
1363 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1370 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1844 } 1851 }
1845 1852
1846 const Experiment* GetExperiments(size_t* count) { 1853 const Experiment* GetExperiments(size_t* count) {
1847 *count = num_experiments; 1854 *count = num_experiments;
1848 return experiments; 1855 return experiments;
1849 } 1856 }
1850 1857
1851 } // namespace testing 1858 } // namespace testing
1852 1859
1853 } // namespace about_flags 1860 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698