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

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

Issue 2706363002: Add Finch flag for Copyless Paste (Closed)
Patch Set: Created 3 years, 10 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 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after
2255 #endif // defined(OS_WIN) 2255 #endif // defined(OS_WIN)
2256 2256
2257 #if defined(OS_CHROMEOS) 2257 #if defined(OS_CHROMEOS)
2258 {"enable-touch-support-for-screen-magnifier", 2258 {"enable-touch-support-for-screen-magnifier",
2259 IDS_FLAGS_ENABLE_TOUCH_SUPPORT_FOR_SCREEN_MAGNIFIER_NAME, 2259 IDS_FLAGS_ENABLE_TOUCH_SUPPORT_FOR_SCREEN_MAGNIFIER_NAME,
2260 IDS_FLAGS_ENABLE_TOUCH_SUPPORT_FOR_SCREEN_MAGNIFIER_DESCRIPTION, kOsCrOS, 2260 IDS_FLAGS_ENABLE_TOUCH_SUPPORT_FOR_SCREEN_MAGNIFIER_DESCRIPTION, kOsCrOS,
2261 SINGLE_VALUE_TYPE( 2261 SINGLE_VALUE_TYPE(
2262 chromeos::switches::kEnableTouchSupportForScreenMagnifier)}, 2262 chromeos::switches::kEnableTouchSupportForScreenMagnifier)},
2263 #endif // OS_CHROMEOS 2263 #endif // OS_CHROMEOS
2264 2264
2265 #if defined(OS_ANDROID)
2266 {"enable-copyless-paste", IDS_FLAGS_COPYLESS_PASTE_NAME,
2267 IDS_FLAGS_COPYLESS_PASTE_DESCRIPTION, kOsAndroid,
2268 FEATURE_VALUE_TYPE(features::kCopylessPaste)},
2269 #endif
2270
2265 // NOTE: Adding new command-line switches requires adding corresponding 2271 // NOTE: Adding new command-line switches requires adding corresponding
2266 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2272 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2267 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2273 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2268 }; 2274 };
2269 2275
2270 class FlagsStateSingleton { 2276 class FlagsStateSingleton {
2271 public: 2277 public:
2272 FlagsStateSingleton() 2278 FlagsStateSingleton()
2273 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2279 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2274 ~FlagsStateSingleton() {} 2280 ~FlagsStateSingleton() {}
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2463 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2469 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2464 2470
2465 const FeatureEntry* GetFeatureEntries(size_t* count) { 2471 const FeatureEntry* GetFeatureEntries(size_t* count) {
2466 *count = arraysize(kFeatureEntries); 2472 *count = arraysize(kFeatureEntries);
2467 return kFeatureEntries; 2473 return kFeatureEntries;
2468 } 2474 }
2469 2475
2470 } // namespace testing 2476 } // namespace testing
2471 2477
2472 } // namespace about_flags 2478 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698