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

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

Issue 16358011: Added flag to enable WebGL Draft Extensions to about:flags (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typo Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 MULTI_VALUE_TYPE(kTabCaptureUpscaleQualityChoices) 1509 MULTI_VALUE_TYPE(kTabCaptureUpscaleQualityChoices)
1510 }, 1510 },
1511 { 1511 {
1512 "tab-capture-downscale-quality", 1512 "tab-capture-downscale-quality",
1513 IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_NAME, 1513 IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_NAME,
1514 IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_DESCRIPTION, 1514 IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_DESCRIPTION,
1515 kOsAll, 1515 kOsAll,
1516 MULTI_VALUE_TYPE(kTabCaptureDownscaleQualityChoices) 1516 MULTI_VALUE_TYPE(kTabCaptureDownscaleQualityChoices)
1517 }, 1517 },
1518 #endif 1518 #endif
1519 {
1520 "enable-webgl-draft-extensions",
1521 IDS_FLAGS_ENABLE_WEBGL_DRAFT_EXTENSIONS_NAME,
1522 IDS_FLAGS_ENABLE_WEBGL_DRAFT_EXTENSIONS_DESCRIPTION,
1523 kOsAll,
1524 SINGLE_VALUE_TYPE(switches::kEnableWebGLDraftExtensions)
1525 },
1519 }; 1526 };
1520 1527
1521 const Experiment* experiments = kExperiments; 1528 const Experiment* experiments = kExperiments;
1522 size_t num_experiments = arraysize(kExperiments); 1529 size_t num_experiments = arraysize(kExperiments);
1523 1530
1524 // Stores and encapsulates the little state that about:flags has. 1531 // Stores and encapsulates the little state that about:flags has.
1525 class FlagsState { 1532 class FlagsState {
1526 public: 1533 public:
1527 FlagsState() : needs_restart_(false) {} 1534 FlagsState() : needs_restart_(false) {}
1528 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1535 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 } 2020 }
2014 2021
2015 const Experiment* GetExperiments(size_t* count) { 2022 const Experiment* GetExperiments(size_t* count) {
2016 *count = num_experiments; 2023 *count = num_experiments;
2017 return experiments; 2024 return experiments;
2018 } 2025 }
2019 2026
2020 } // namespace testing 2027 } // namespace testing
2021 2028
2022 } // namespace about_flags 2029 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698