| OLD | NEW |
| 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 cc::switches::kMaxTilesForInterestArea, "64"}, | 207 cc::switches::kMaxTilesForInterestArea, "64"}, |
| 208 { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_TALL, | 208 { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_TALL, |
| 209 cc::switches::kMaxTilesForInterestArea, "128"}, | 209 cc::switches::kMaxTilesForInterestArea, "128"}, |
| 210 { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_GRANDE, | 210 { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_GRANDE, |
| 211 cc::switches::kMaxTilesForInterestArea, "256"}, | 211 cc::switches::kMaxTilesForInterestArea, "256"}, |
| 212 { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_VENTI, | 212 { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_VENTI, |
| 213 cc::switches::kMaxTilesForInterestArea, "512"} | 213 cc::switches::kMaxTilesForInterestArea, "512"} |
| 214 }; | 214 }; |
| 215 | 215 |
| 216 const Experiment::Choice kSimpleCacheBackendChoices[] = { | 216 const Experiment::Choice kSimpleCacheBackendChoices[] = { |
| 217 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, "", "off" }, | 217 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 218 switches::kUseSimpleCacheBackend, "off" }, |
| 218 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, | 219 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 219 switches::kUseSimpleCacheBackend, "on"} | 220 switches::kUseSimpleCacheBackend, "on"} |
| 220 }; | 221 }; |
| 221 | 222 |
| 222 // RECORDING USER METRICS FOR FLAGS: | 223 // RECORDING USER METRICS FOR FLAGS: |
| 223 // ----------------------------------------------------------------------------- | 224 // ----------------------------------------------------------------------------- |
| 224 // The first line of the experiment is the internal name. If you'd like to | 225 // The first line of the experiment is the internal name. If you'd like to |
| 225 // gather statistics about the usage of your flag, you should append a marker | 226 // gather statistics about the usage of your flag, you should append a marker |
| 226 // comment to the end of the feature name, like so: | 227 // comment to the end of the feature name, like so: |
| 227 // "my-special-feature", // FLAGS:RECORD_UMA | 228 // "my-special-feature", // FLAGS:RECORD_UMA |
| (...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1835 } | 1836 } |
| 1836 | 1837 |
| 1837 const Experiment* GetExperiments(size_t* count) { | 1838 const Experiment* GetExperiments(size_t* count) { |
| 1838 *count = num_experiments; | 1839 *count = num_experiments; |
| 1839 return experiments; | 1840 return experiments; |
| 1840 } | 1841 } |
| 1841 | 1842 |
| 1842 } // namespace testing | 1843 } // namespace testing |
| 1843 | 1844 |
| 1844 } // namespace about_flags | 1845 } // namespace about_flags |
| OLD | NEW |