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

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

Issue 1166823002: Add a chrome://flag for the App Info dialog on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20150603-MacViews-ModalChildConstrained-fromcl
Patch Set: Rebase after typo fix 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 2379 matching lines...) Expand 10 before | Expand all | Expand 10 after
2390 }, 2390 },
2391 #if defined(ENABLE_WEBRTC) 2391 #if defined(ENABLE_WEBRTC)
2392 { 2392 {
2393 "enable-webrtc-dtls12", 2393 "enable-webrtc-dtls12",
2394 IDS_FLAGS_ENABLE_WEBRTC_DTLS12_NAME, 2394 IDS_FLAGS_ENABLE_WEBRTC_DTLS12_NAME,
2395 IDS_FLAGS_ENABLE_WEBRTC_DTLS12_DESCRIPTION, 2395 IDS_FLAGS_ENABLE_WEBRTC_DTLS12_DESCRIPTION,
2396 kOsAll, 2396 kOsAll,
2397 SINGLE_VALUE_TYPE(switches::kEnableWebRtcDtls12) 2397 SINGLE_VALUE_TYPE(switches::kEnableWebRtcDtls12)
2398 }, 2398 },
2399 #endif 2399 #endif
2400 #if defined(OS_MACOSX)
2401 {
2402 "app-info-dialog",
2403 IDS_FLAGS_APP_INFO_DIALOG_NAME,
2404 IDS_FLAGS_APP_INFO_DIALOG_DESCRIPTION,
2405 kOsMac,
2406 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppInfoDialogMac,
2407 switches::kDisableAppInfoDialogMac)
2408 },
2409 #endif
2400 // NOTE: Adding new command-line switches requires adding corresponding 2410 // NOTE: Adding new command-line switches requires adding corresponding
2401 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2411 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2402 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2412 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2403 }; 2413 };
2404 2414
2405 const Experiment* experiments = kExperiments; 2415 const Experiment* experiments = kExperiments;
2406 size_t num_experiments = arraysize(kExperiments); 2416 size_t num_experiments = arraysize(kExperiments);
2407 2417
2408 // Stores and encapsulates the little state that about:flags has. 2418 // Stores and encapsulates the little state that about:flags has.
2409 class FlagsState { 2419 class FlagsState {
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
2978 } 2988 }
2979 2989
2980 const Experiment* GetExperiments(size_t* count) { 2990 const Experiment* GetExperiments(size_t* count) {
2981 *count = num_experiments; 2991 *count = num_experiments;
2982 return experiments; 2992 return experiments;
2983 } 2993 }
2984 2994
2985 } // namespace testing 2995 } // namespace testing
2986 2996
2987 } // namespace about_flags 2997 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/app_list/app_list_controller_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698