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 2838103002: Omnibox - Add about:flag to Enable Clipboard Provider (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | chrome/browser/flag_descriptions.h » ('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 2698 matching lines...) Expand 10 before | Expand all | Expand 10 after
2709 flag_descriptions::kEnableZipArchiverOnFileManagerDescription, kOsCrOS, 2709 flag_descriptions::kEnableZipArchiverOnFileManagerDescription, kOsCrOS,
2710 SINGLE_VALUE_TYPE(chromeos::switches::kEnableZipArchiverOnFileManager)}, 2710 SINGLE_VALUE_TYPE(chromeos::switches::kEnableZipArchiverOnFileManager)},
2711 #endif // OS_CHROMEOS 2711 #endif // OS_CHROMEOS
2712 2712
2713 #if defined(OS_ANDROID) 2713 #if defined(OS_ANDROID)
2714 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName, 2714 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName,
2715 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid, 2715 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid,
2716 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, 2716 FEATURE_VALUE_TYPE(features::kCopylessPaste)},
2717 #endif 2717 #endif
2718 2718
2719 #if defined(OS_ANDROID)
2720 {"enable-clipboard-provider",
2721 flag_descriptions::kEnableOmniboxClipboardProviderName,
2722 flag_descriptions::kEnableOmniboxClipboardProviderDescription, kOsAndroid,
2723 FEATURE_VALUE_TYPE(omnibox::kEnableClipboardProvider)},
2724 #endif
2725
2719 // NOTE: Adding new command-line switches requires adding corresponding 2726 // NOTE: Adding new command-line switches requires adding corresponding
2720 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2727 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2721 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2728 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2722 }; 2729 };
2723 2730
2724 class FlagsStateSingleton { 2731 class FlagsStateSingleton {
2725 public: 2732 public:
2726 FlagsStateSingleton() 2733 FlagsStateSingleton()
2727 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2734 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2728 ~FlagsStateSingleton() {} 2735 ~FlagsStateSingleton() {}
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
2925 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2932 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2926 2933
2927 const FeatureEntry* GetFeatureEntries(size_t* count) { 2934 const FeatureEntry* GetFeatureEntries(size_t* count) {
2928 *count = arraysize(kFeatureEntries); 2935 *count = arraysize(kFeatureEntries);
2929 return kFeatureEntries; 2936 return kFeatureEntries;
2930 } 2937 }
2931 2938
2932 } // namespace testing 2939 } // namespace testing
2933 2940
2934 } // namespace about_flags 2941 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698