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

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

Issue 342713007: [AiS] Add disable flag to about_flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« 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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 extensions::switches::kExtensionContentVerification, 401 extensions::switches::kExtensionContentVerification,
402 extensions::switches::kExtensionContentVerificationBootstrap }, 402 extensions::switches::kExtensionContentVerificationBootstrap },
403 { IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_ENFORCE, 403 { IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_ENFORCE,
404 extensions::switches::kExtensionContentVerification, 404 extensions::switches::kExtensionContentVerification,
405 extensions::switches::kExtensionContentVerificationEnforce }, 405 extensions::switches::kExtensionContentVerificationEnforce },
406 { IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_ENFORCE_STRICT, 406 { IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_ENFORCE_STRICT,
407 extensions::switches::kExtensionContentVerification, 407 extensions::switches::kExtensionContentVerification,
408 extensions::switches::kExtensionContentVerificationEnforceStrict }, 408 extensions::switches::kExtensionContentVerificationEnforceStrict },
409 }; 409 };
410 410
411 #if defined(OS_ANDROID)
412 const Experiment::Choice kAnswersInSuggestChoices[] = {
413 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
414 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
415 switches::kEnableAnswersInSuggest, ""},
416 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
417 switches::kDisableAnswersInSuggest, ""}
418 };
419 #endif
420
411 // Using independent flags (instead of flag=value flags) to be able to 421 // Using independent flags (instead of flag=value flags) to be able to
412 // associate the version with a FieldTrial. FieldTrials don't currently support 422 // associate the version with a FieldTrial. FieldTrials don't currently support
413 // flag=value flags. 423 // flag=value flags.
414 const Experiment::Choice kSSLInterstitialVersions[] = { 424 const Experiment::Choice kSSLInterstitialVersions[] = {
415 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, 425 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
416 { IDS_FLAGS_SSL_INTERSTITIAL_VERSION_V1, 426 { IDS_FLAGS_SSL_INTERSTITIAL_VERSION_V1,
417 switches::kSSLInterstitialVersionV1, "" }, 427 switches::kSSLInterstitialVersionV1, "" },
418 { IDS_FLAGS_SSL_INTERSTITIAL_VERSION_V2_GRAY, 428 { IDS_FLAGS_SSL_INTERSTITIAL_VERSION_V2_GRAY,
419 switches::kSSLInterstitialVersionV2Gray, "" }, 429 switches::kSSLInterstitialVersionV2Gray, "" },
420 { IDS_FLAGS_SSL_INTERSTITIAL_VERSION_V2_COLORFUL, 430 { IDS_FLAGS_SSL_INTERSTITIAL_VERSION_V2_COLORFUL,
(...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 }, 1911 },
1902 { 1912 {
1903 "enable-harfbuzz-rendertext", 1913 "enable-harfbuzz-rendertext",
1904 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_NAME, 1914 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_NAME,
1905 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_DESCRIPTION, 1915 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_DESCRIPTION,
1906 kOsDesktop, 1916 kOsDesktop,
1907 SINGLE_VALUE_TYPE(switches::kEnableHarfBuzzRenderText) 1917 SINGLE_VALUE_TYPE(switches::kEnableHarfBuzzRenderText)
1908 }, 1918 },
1909 #if defined(OS_ANDROID) 1919 #if defined(OS_ANDROID)
1910 { 1920 {
1911 "enable-answers-in-suggest", 1921 "answers-in-suggest",
1912 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_NAME, 1922 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_NAME,
1913 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_DESCRIPTION, 1923 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_DESCRIPTION,
1914 kOsAndroid, 1924 kOsAndroid,
1915 SINGLE_VALUE_TYPE(switches::kEnableAnswersInSuggest) 1925 MULTI_VALUE_TYPE(kAnswersInSuggestChoices)
1916 }, 1926 },
1917 #endif 1927 #endif
1918 { 1928 {
1919 "ssl-interstitial-version", 1929 "ssl-interstitial-version",
1920 IDS_FLAGS_SSL_INTERSTITIAL_TRIAL_NAME, 1930 IDS_FLAGS_SSL_INTERSTITIAL_TRIAL_NAME,
1921 IDS_FLAGS_SSL_INTERSTITIAL_TRIAL_DESCRIPTION, 1931 IDS_FLAGS_SSL_INTERSTITIAL_TRIAL_DESCRIPTION,
1922 kOsAll, 1932 kOsAll,
1923 MULTI_VALUE_TYPE(kSSLInterstitialVersions) 1933 MULTI_VALUE_TYPE(kSSLInterstitialVersions)
1924 }, 1934 },
1925 { 1935 {
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
2461 } 2471 }
2462 2472
2463 const Experiment* GetExperiments(size_t* count) { 2473 const Experiment* GetExperiments(size_t* count) {
2464 *count = num_experiments; 2474 *count = num_experiments;
2465 return experiments; 2475 return experiments;
2466 } 2476 }
2467 2477
2468 } // namespace testing 2478 } // namespace testing
2469 2479
2470 } // namespace about_flags 2480 } // 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