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

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

Issue 14048014: Fix SimpleCache field trial creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remediate 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_field_trials.cc » ('j') | chrome/browser/chrome_browser_field_trials.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698