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

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

Issue 2356193002: [Sensors] Adding chrome flag to enable Generic Sensor based APIs (Closed)
Patch Set: rebased Created 4 years, 2 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 2025 matching lines...) Expand 10 before | Expand all | Expand 10 after
2036 FEATURE_VALUE_TYPE(arc::kBootCompletedBroadcastFeature)}, 2036 FEATURE_VALUE_TYPE(arc::kBootCompletedBroadcastFeature)},
2037 #endif 2037 #endif
2038 #if defined(OS_WIN) 2038 #if defined(OS_WIN)
2039 {"disable-winrt-midi-api", IDS_FLAGS_DISABLE_WINRT_MIDI_API_NAME, 2039 {"disable-winrt-midi-api", IDS_FLAGS_DISABLE_WINRT_MIDI_API_NAME,
2040 IDS_FLAGS_DISABLE_WINRT_MIDI_API_DESCRIPTION, kOsWin, 2040 IDS_FLAGS_DISABLE_WINRT_MIDI_API_DESCRIPTION, kOsWin,
2041 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWinrtMidiApi)}, 2041 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWinrtMidiApi)},
2042 #endif // OS_WIN 2042 #endif // OS_WIN
2043 {"saveas-menu-text-experiment", IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_NAME, 2043 {"saveas-menu-text-experiment", IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_NAME,
2044 IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_DESCRIPTION, kOsDesktop, 2044 IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_DESCRIPTION, kOsDesktop,
2045 SINGLE_VALUE_TYPE(switches::kEnableSaveAsMenuLabelExperiment)}, 2045 SINGLE_VALUE_TYPE(switches::kEnableSaveAsMenuLabelExperiment)},
2046 {"enable-generic-sensor", IDS_FLAGS_ENABLE_GENERIC_SENSOR_NAME,
2047 IDS_FLAGS_ENABLE_GENERIC_SENSOR_DESCRIPTION, kOsAndroid | kOsMac,
2048 FEATURE_VALUE_TYPE(features::kGenericSensor)},
2046 // NOTE: Adding new command-line switches requires adding corresponding 2049 // NOTE: Adding new command-line switches requires adding corresponding
2047 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2050 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2048 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2051 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2049 }; 2052 };
2050 2053
2051 class FlagsStateSingleton { 2054 class FlagsStateSingleton {
2052 public: 2055 public:
2053 FlagsStateSingleton() 2056 FlagsStateSingleton()
2054 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2057 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2055 ~FlagsStateSingleton() {} 2058 ~FlagsStateSingleton() {}
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2244 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2247 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2245 2248
2246 const FeatureEntry* GetFeatureEntries(size_t* count) { 2249 const FeatureEntry* GetFeatureEntries(size_t* count) {
2247 *count = arraysize(kFeatureEntries); 2250 *count = arraysize(kFeatureEntries);
2248 return kFeatureEntries; 2251 return kFeatureEntries;
2249 } 2252 }
2250 2253
2251 } // namespace testing 2254 } // namespace testing
2252 2255
2253 } // namespace about_flags 2256 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698