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

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

Issue 759403002: Add --enable-seccomp-filter-sandbox to about:flags on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after
1998 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker) 1998 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker)
1999 }, 1999 },
2000 #endif // defined(OS_CHROMEOS) 2000 #endif // defined(OS_CHROMEOS)
2001 { 2001 {
2002 "ssl-version-min", 2002 "ssl-version-min",
2003 IDS_FLAGS_SSL_VERSION_MIN_NAME, 2003 IDS_FLAGS_SSL_VERSION_MIN_NAME,
2004 IDS_FLAGS_SSL_VERSION_MIN_DESCRIPTION, 2004 IDS_FLAGS_SSL_VERSION_MIN_DESCRIPTION,
2005 kOsAll, 2005 kOsAll,
2006 MULTI_VALUE_TYPE(kSSLVersionMinChoices) 2006 MULTI_VALUE_TYPE(kSSLVersionMinChoices)
2007 }, 2007 },
2008 #if defined(OS_ANDROID)
2009 {
2010 "enable-seccomp-filter-sandbox",
2011 IDS_FLAGS_ENABLE_SECCOMP_FILTER_SANDBOX_ANDROID_NAME,
2012 IDS_FLAGS_ENABLE_SECCOMP_FILTER_SANDBOX_ANDROID_DESCRIPTION,
2013 kOsAndroid,
2014 SINGLE_VALUE_TYPE(switches::kEnableSeccompFilterSandbox)
2015 },
2016 #endif
2008 // NOTE: Adding new command-line switches requires adding corresponding 2017 // NOTE: Adding new command-line switches requires adding corresponding
2009 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2018 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2010 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2019 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2011 }; 2020 };
2012 2021
2013 const Experiment* experiments = kExperiments; 2022 const Experiment* experiments = kExperiments;
2014 size_t num_experiments = arraysize(kExperiments); 2023 size_t num_experiments = arraysize(kExperiments);
2015 2024
2016 // Stores and encapsulates the little state that about:flags has. 2025 // Stores and encapsulates the little state that about:flags has.
2017 class FlagsState { 2026 class FlagsState {
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
2576 } 2585 }
2577 2586
2578 const Experiment* GetExperiments(size_t* count) { 2587 const Experiment* GetExperiments(size_t* count) {
2579 *count = num_experiments; 2588 *count = num_experiments;
2580 return experiments; 2589 return experiments;
2581 } 2590 }
2582 2591
2583 } // namespace testing 2592 } // namespace testing
2584 2593
2585 } // namespace about_flags 2594 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698