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

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

Issue 164373012: Remove options to disable deadline scheduling (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 6 years, 10 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 <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 13 matching lines...) Expand all
24 #include "components/autofill/core/common/autofill_switches.h" 24 #include "components/autofill/core/common/autofill_switches.h"
25 #include "components/nacl/common/nacl_switches.h" 25 #include "components/nacl/common/nacl_switches.h"
26 #include "content/public/browser/user_metrics.h" 26 #include "content/public/browser/user_metrics.h"
27 #include "extensions/common/switches.h" 27 #include "extensions/common/switches.h"
28 #include "grit/chromium_strings.h" 28 #include "grit/chromium_strings.h"
29 #include "grit/generated_resources.h" 29 #include "grit/generated_resources.h"
30 #include "grit/google_chrome_strings.h" 30 #include "grit/google_chrome_strings.h"
31 #include "media/base/media_switches.h" 31 #include "media/base/media_switches.h"
32 #include "ui/base/l10n/l10n_util.h" 32 #include "ui/base/l10n/l10n_util.h"
33 #include "ui/base/ui_base_switches.h" 33 #include "ui/base/ui_base_switches.h"
34 #include "ui/compositor/compositor_switches.h"
35 #include "ui/events/event_switches.h" 34 #include "ui/events/event_switches.h"
36 #include "ui/gfx/switches.h" 35 #include "ui/gfx/switches.h"
37 #include "ui/gl/gl_switches.h" 36 #include "ui/gl/gl_switches.h"
38 #include "ui/keyboard/keyboard_switches.h" 37 #include "ui/keyboard/keyboard_switches.h"
39 #include "ui/message_center/message_center_switches.h" 38 #include "ui/message_center/message_center_switches.h"
40 #include "ui/views/views_switches.h" 39 #include "ui/views/views_switches.h"
41 40
42 #if defined(USE_ASH) 41 #if defined(USE_ASH)
43 #include "ash/ash_switches.h" 42 #include "ash/ash_switches.h"
44 #endif 43 #endif
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 }; 197 };
199 198
200 const Experiment::Choice kImplSidePaintingChoices[] = { 199 const Experiment::Choice kImplSidePaintingChoices[] = {
201 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, 200 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
202 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, 201 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
203 cc::switches::kEnableImplSidePainting, ""}, 202 cc::switches::kEnableImplSidePainting, ""},
204 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, 203 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
205 cc::switches::kDisableImplSidePainting, ""} 204 cc::switches::kDisableImplSidePainting, ""}
206 }; 205 };
207 206
208 const Experiment::Choice kDeadlineSchedulingChoices[] = {
209 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
210 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
211 switches::kEnableDeadlineScheduling, ""},
212 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
213 switches::kDisableDeadlineScheduling, ""}
214 };
215
216 const Experiment::Choice kUIDeadlineSchedulingChoices[] = {
217 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
218 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
219 switches::kUIEnableDeadlineScheduling, ""},
220 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
221 switches::kUIDisableDeadlineScheduling, ""}
222 };
223
224 const Experiment::Choice kLCDTextChoices[] = { 207 const Experiment::Choice kLCDTextChoices[] = {
225 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, 208 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
226 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, cc::switches::kEnableLCDText, ""}, 209 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, cc::switches::kEnableLCDText, ""},
227 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, cc::switches::kDisableLCDText, ""} 210 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, cc::switches::kDisableLCDText, ""}
228 }; 211 };
229 212
230 const Experiment::Choice kDelegatedRendererChoices[] = { 213 const Experiment::Choice kDelegatedRendererChoices[] = {
231 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, 214 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
232 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, 215 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
233 switches::kEnableDelegatedRenderer, ""}, 216 switches::kEnableDelegatedRenderer, ""},
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 SINGLE_VALUE_TYPE(switches::kEnableUserMediaScreenCapturing) 1414 SINGLE_VALUE_TYPE(switches::kEnableUserMediaScreenCapturing)
1432 }, 1415 },
1433 { 1416 {
1434 "impl-side-painting", 1417 "impl-side-painting",
1435 IDS_FLAGS_IMPL_SIDE_PAINTING_NAME, 1418 IDS_FLAGS_IMPL_SIDE_PAINTING_NAME,
1436 IDS_FLAGS_IMPL_SIDE_PAINTING_DESCRIPTION, 1419 IDS_FLAGS_IMPL_SIDE_PAINTING_DESCRIPTION,
1437 kOsAll, 1420 kOsAll,
1438 MULTI_VALUE_TYPE(kImplSidePaintingChoices) 1421 MULTI_VALUE_TYPE(kImplSidePaintingChoices)
1439 }, 1422 },
1440 { 1423 {
1441 "deadline-scheduling",
1442 IDS_FLAGS_DEADLINE_SCHEDULING_NAME,
1443 IDS_FLAGS_DEADLINE_SCHEDULING_DESCRIPTION,
1444 kOsMac | kOsWin | kOsLinux | kOsCrOS | kOsAndroid,
1445 MULTI_VALUE_TYPE(kDeadlineSchedulingChoices)
1446 },
1447 {
1448 "ui-deadline-scheduling",
1449 IDS_FLAGS_UI_DEADLINE_SCHEDULING_NAME,
1450 IDS_FLAGS_UI_DEADLINE_SCHEDULING_DESCRIPTION,
1451 #ifdef USE_AURA
1452 kOsWin | kOsLinux |
1453 #endif
1454 kOsCrOS,
1455 MULTI_VALUE_TYPE(kUIDeadlineSchedulingChoices)
1456 },
1457 {
1458 "lcd-text-aa", 1424 "lcd-text-aa",
1459 IDS_FLAGS_LCD_TEXT_NAME, 1425 IDS_FLAGS_LCD_TEXT_NAME,
1460 IDS_FLAGS_LCD_TEXT_DESCRIPTION, 1426 IDS_FLAGS_LCD_TEXT_DESCRIPTION,
1461 kOsDesktop, 1427 kOsDesktop,
1462 MULTI_VALUE_TYPE(kLCDTextChoices) 1428 MULTI_VALUE_TYPE(kLCDTextChoices)
1463 }, 1429 },
1464 { 1430 {
1465 "delegated-renderer", 1431 "delegated-renderer",
1466 IDS_FLAGS_DELEGATED_RENDERER_NAME, 1432 IDS_FLAGS_DELEGATED_RENDERER_NAME,
1467 IDS_FLAGS_DELEGATED_RENDERER_DESCRIPTION, 1433 IDS_FLAGS_DELEGATED_RENDERER_DESCRIPTION,
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
2513 } 2479 }
2514 2480
2515 const Experiment* GetExperiments(size_t* count) { 2481 const Experiment* GetExperiments(size_t* count) {
2516 *count = num_experiments; 2482 *count = num_experiments;
2517 return experiments; 2483 return experiments;
2518 } 2484 }
2519 2485
2520 } // namespace testing 2486 } // namespace testing
2521 2487
2522 } // namespace about_flags 2488 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/login/chrome_restart_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698