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

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

Issue 1278593004: Introduce ThreadedInputConnection behind a switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix selection update to be accurate and fix tests Created 4 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 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1803 IDS_FLAGS_DISABLE_UI_COMPOSITOR_ANIMATION_TIMELINES, 1803 IDS_FLAGS_DISABLE_UI_COMPOSITOR_ANIMATION_TIMELINES,
1804 IDS_FLAGS_DISABLE_UI_COMPOSITOR_ANIMATION_TIMELINES_DESCRIPTION, 1804 IDS_FLAGS_DISABLE_UI_COMPOSITOR_ANIMATION_TIMELINES_DESCRIPTION,
1805 kOsDesktop, SINGLE_DISABLE_VALUE_TYPE( 1805 kOsDesktop, SINGLE_DISABLE_VALUE_TYPE(
1806 switches::kUIDisableCompositorAnimationTimelines)}, 1806 switches::kUIDisableCompositorAnimationTimelines)},
1807 #endif // !defined(OS_ANDROID) 1807 #endif // !defined(OS_ANDROID)
1808 {"enable-audio-support-for-desktop-share", 1808 {"enable-audio-support-for-desktop-share",
1809 IDS_FLAG_ENABLE_AUDIO_FOR_DESKTOP_SHARE, 1809 IDS_FLAG_ENABLE_AUDIO_FOR_DESKTOP_SHARE,
1810 IDS_FLAG_ENABLE_AUDIO_FOR_DESKTOP_SHARE_DESCRIPTION, 1810 IDS_FLAG_ENABLE_AUDIO_FOR_DESKTOP_SHARE_DESCRIPTION,
1811 kOsAll, 1811 kOsAll,
1812 SINGLE_VALUE_TYPE(switches::kEnableAudioSupportForDesktopShare)}, 1812 SINGLE_VALUE_TYPE(switches::kEnableAudioSupportForDesktopShare)},
1813 #if defined(OS_ANDROID)
1814 {"use-ime-thread", IDS_FLAGS_USE_IME_THREAD_NAME,
1815 IDS_FLAGS_USE_IME_THREAD_DESCRIPTION, kOsAndroid,
1816 SINGLE_VALUE_TYPE(switches::kUseImeThread)},
1817 #endif // defined(OS_ANDROID)
1813 1818
1814 // NOTE: Adding new command-line switches requires adding corresponding 1819 // NOTE: Adding new command-line switches requires adding corresponding
1815 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1820 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
1816 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1821 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1817 }; 1822 };
1818 1823
1819 class FlagsStateSingleton { 1824 class FlagsStateSingleton {
1820 public: 1825 public:
1821 FlagsStateSingleton() 1826 FlagsStateSingleton()
1822 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 1827 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2025 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2030 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2026 2031
2027 const FeatureEntry* GetFeatureEntries(size_t* count) { 2032 const FeatureEntry* GetFeatureEntries(size_t* count) {
2028 *count = arraysize(kFeatureEntries); 2033 *count = arraysize(kFeatureEntries);
2029 return kFeatureEntries; 2034 return kFeatureEntries;
2030 } 2035 }
2031 2036
2032 } // namespace testing 2037 } // namespace testing
2033 2038
2034 } // namespace about_flags 2039 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698