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

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

Issue 880093002: Expose --site-per-process in chrome://flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update description wording Created 5 years, 11 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | tools/metrics/histograms/histograms.xml » ('j') | 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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 2133 matching lines...) Expand 10 before | Expand all | Expand 10 after
2144 }, 2144 },
2145 2145
2146 { 2146 {
2147 "mark-non-secure-as", // FLAGS:RECORD_UMA 2147 "mark-non-secure-as", // FLAGS:RECORD_UMA
2148 IDS_MARK_NON_SECURE_AS_NAME, 2148 IDS_MARK_NON_SECURE_AS_NAME,
2149 IDS_MARK_NON_SECURE_AS_DESCRIPTION, 2149 IDS_MARK_NON_SECURE_AS_DESCRIPTION,
2150 kOsAll, 2150 kOsAll,
2151 MULTI_VALUE_TYPE(kMarkNonSecureAsChoices) 2151 MULTI_VALUE_TYPE(kMarkNonSecureAsChoices)
2152 }, 2152 },
2153 2153
2154 {
2155 "enable-site-per-process",
2156 IDS_FLAGS_ENABLE_SITE_PER_PROCESS_NAME,
2157 IDS_FLAGS_ENABLE_SITE_PER_PROCESS_DESCRIPTION,
2158 kOsAll,
2159 SINGLE_VALUE_TYPE(switches::kSitePerProcess)
2160 },
2161
2154 // NOTE: Adding new command-line switches requires adding corresponding 2162 // NOTE: Adding new command-line switches requires adding corresponding
2155 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2163 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2156 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2164 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2157 }; 2165 };
2158 2166
2159 const Experiment* experiments = kExperiments; 2167 const Experiment* experiments = kExperiments;
2160 size_t num_experiments = arraysize(kExperiments); 2168 size_t num_experiments = arraysize(kExperiments);
2161 2169
2162 // Stores and encapsulates the little state that about:flags has. 2170 // Stores and encapsulates the little state that about:flags has.
2163 class FlagsState { 2171 class FlagsState {
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
2722 } 2730 }
2723 2731
2724 const Experiment* GetExperiments(size_t* count) { 2732 const Experiment* GetExperiments(size_t* count) {
2725 *count = num_experiments; 2733 *count = num_experiments;
2726 return experiments; 2734 return experiments;
2727 } 2735 }
2728 2736
2729 } // namespace testing 2737 } // namespace testing
2730 2738
2731 } // namespace about_flags 2739 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698