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

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

Issue 1192633003: content: Rename raster threads to worker threads. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 switches::reader_mode_heuristics::kAdaBoost }, 319 switches::reader_mode_heuristics::kAdaBoost },
320 { IDS_FLAGS_READER_MODE_HEURISTICS_ALWAYS_ON, 320 { IDS_FLAGS_READER_MODE_HEURISTICS_ALWAYS_ON,
321 switches::kReaderModeHeuristics, 321 switches::kReaderModeHeuristics,
322 switches::reader_mode_heuristics::kAlwaysTrue }, 322 switches::reader_mode_heuristics::kAlwaysTrue },
323 { IDS_FLAGS_READER_MODE_HEURISTICS_ALWAYS_OFF, 323 { IDS_FLAGS_READER_MODE_HEURISTICS_ALWAYS_OFF,
324 switches::kReaderModeHeuristics, 324 switches::kReaderModeHeuristics,
325 switches::reader_mode_heuristics::kNone }, 325 switches::reader_mode_heuristics::kNone },
326 }; 326 };
327 #endif 327 #endif
328 328
329 const Experiment::Choice kNumRasterThreadsChoices[] = { 329 const Experiment::Choice kNumWorkerThreadsChoices[] = {
330 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, 330 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
331 { IDS_FLAGS_NUM_RASTER_THREADS_ONE, switches::kNumRasterThreads, "1" }, 331 {IDS_FLAGS_NUM_WORKER_THREADS_ONE, switches::kNumWorkerThreads, "1"},
332 { IDS_FLAGS_NUM_RASTER_THREADS_TWO, switches::kNumRasterThreads, "2" }, 332 {IDS_FLAGS_NUM_WORKER_THREADS_TWO, switches::kNumWorkerThreads, "2"},
333 { IDS_FLAGS_NUM_RASTER_THREADS_THREE, switches::kNumRasterThreads, "3" }, 333 {IDS_FLAGS_NUM_WORKER_THREADS_THREE, switches::kNumWorkerThreads, "3"},
334 { IDS_FLAGS_NUM_RASTER_THREADS_FOUR, switches::kNumRasterThreads, "4" } 334 {IDS_FLAGS_NUM_WORKER_THREADS_FOUR, switches::kNumWorkerThreads, "4"}};
335 };
336 335
337 const Experiment::Choice kGpuRasterizationMSAASampleCountChoices[] = { 336 const Experiment::Choice kGpuRasterizationMSAASampleCountChoices[] = {
338 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, 337 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT,
339 "", 338 "",
340 "" }, 339 "" },
341 { IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_ZERO, 340 { IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_ZERO,
342 switches::kGpuRasterizationMSAASampleCount, "0" }, 341 switches::kGpuRasterizationMSAASampleCount, "0" },
343 { IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_TWO, 342 { IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_TWO,
344 switches::kGpuRasterizationMSAASampleCount, "2" }, 343 switches::kGpuRasterizationMSAASampleCount, "2" },
345 { IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_FOUR, 344 { IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_FOUR,
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 IDS_FLAGS_READER_MODE_EXPERIMENT_NAME, 1482 IDS_FLAGS_READER_MODE_EXPERIMENT_NAME,
1484 IDS_FLAGS_READER_MODE_EXPERIMENT_DESCRIPTION, 1483 IDS_FLAGS_READER_MODE_EXPERIMENT_DESCRIPTION,
1485 kOsAndroid, 1484 kOsAndroid,
1486 SINGLE_VALUE_TYPE(switches::kEnableReaderModeToolbarIcon)}, 1485 SINGLE_VALUE_TYPE(switches::kEnableReaderModeToolbarIcon)},
1487 {"enable-dom-distiller-button-animation", 1486 {"enable-dom-distiller-button-animation",
1488 IDS_FLAGS_READER_MODE_BUTTON_ANIMATION, 1487 IDS_FLAGS_READER_MODE_BUTTON_ANIMATION,
1489 IDS_FLAGS_READER_MODE_BUTTON_ANIMATION_DESCRIPTION, 1488 IDS_FLAGS_READER_MODE_BUTTON_ANIMATION_DESCRIPTION,
1490 kOsAndroid, 1489 kOsAndroid,
1491 SINGLE_VALUE_TYPE(switches::kEnableDomDistillerButtonAnimation)}, 1490 SINGLE_VALUE_TYPE(switches::kEnableDomDistillerButtonAnimation)},
1492 #endif 1491 #endif
1493 {"num-raster-threads", 1492 {"num-worker-threads",
1494 IDS_FLAGS_NUM_RASTER_THREADS_NAME, 1493 IDS_FLAGS_NUM_WORKER_THREADS_NAME,
1495 IDS_FLAGS_NUM_RASTER_THREADS_DESCRIPTION, 1494 IDS_FLAGS_NUM_WORKER_THREADS_DESCRIPTION,
1496 kOsAll, 1495 kOsAll,
1497 MULTI_VALUE_TYPE(kNumRasterThreadsChoices)}, 1496 MULTI_VALUE_TYPE(kNumWorkerThreadsChoices)},
1498 {"enable-single-click-autofill", 1497 {"enable-single-click-autofill",
1499 IDS_FLAGS_ENABLE_SINGLE_CLICK_AUTOFILL_NAME, 1498 IDS_FLAGS_ENABLE_SINGLE_CLICK_AUTOFILL_NAME,
1500 IDS_FLAGS_ENABLE_SINGLE_CLICK_AUTOFILL_DESCRIPTION, 1499 IDS_FLAGS_ENABLE_SINGLE_CLICK_AUTOFILL_DESCRIPTION,
1501 kOsCrOS | kOsMac | kOsWin | kOsLinux | kOsAndroid, 1500 kOsCrOS | kOsMac | kOsWin | kOsLinux | kOsAndroid,
1502 ENABLE_DISABLE_VALUE_TYPE( 1501 ENABLE_DISABLE_VALUE_TYPE(
1503 autofill::switches::kEnableSingleClickAutofill, 1502 autofill::switches::kEnableSingleClickAutofill,
1504 autofill::switches::kDisableSingleClickAutofill)}, 1503 autofill::switches::kDisableSingleClickAutofill)},
1505 {"enable-permissions-bubbles", 1504 {"enable-permissions-bubbles",
1506 IDS_FLAGS_ENABLE_PERMISSIONS_BUBBLES_NAME, 1505 IDS_FLAGS_ENABLE_PERMISSIONS_BUBBLES_NAME,
1507 IDS_FLAGS_ENABLE_PERMISSIONS_BUBBLES_DESCRIPTION, 1506 IDS_FLAGS_ENABLE_PERMISSIONS_BUBBLES_DESCRIPTION,
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
2599 } 2598 }
2600 2599
2601 const Experiment* GetExperiments(size_t* count) { 2600 const Experiment* GetExperiments(size_t* count) {
2602 *count = num_experiments; 2601 *count = num_experiments;
2603 return experiments; 2602 return experiments;
2604 } 2603 }
2605 2604
2606 } // namespace testing 2605 } // namespace testing
2607 2606
2608 } // namespace about_flags 2607 } // 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