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

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

Issue 2370343002: [sensors] Ambient light sensor implementation for ChromeOS and Linux. (Closed)
Patch Set: change SetTaskRunner to SetFileTaskRunner as per offline discussion with Mikhail Created 4 years, 1 month 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 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after
2040 #endif // OS_CHROMEOS 2040 #endif // OS_CHROMEOS
2041 #if defined(OS_WIN) 2041 #if defined(OS_WIN)
2042 {"disable-winrt-midi-api", IDS_FLAGS_DISABLE_WINRT_MIDI_API_NAME, 2042 {"disable-winrt-midi-api", IDS_FLAGS_DISABLE_WINRT_MIDI_API_NAME,
2043 IDS_FLAGS_DISABLE_WINRT_MIDI_API_DESCRIPTION, kOsWin, 2043 IDS_FLAGS_DISABLE_WINRT_MIDI_API_DESCRIPTION, kOsWin,
2044 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWinrtMidiApi)}, 2044 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWinrtMidiApi)},
2045 #endif // OS_WIN 2045 #endif // OS_WIN
2046 {"saveas-menu-text-experiment", IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_NAME, 2046 {"saveas-menu-text-experiment", IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_NAME,
2047 IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_DESCRIPTION, kOsDesktop, 2047 IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_DESCRIPTION, kOsDesktop,
2048 SINGLE_VALUE_TYPE(switches::kEnableSaveAsMenuLabelExperiment)}, 2048 SINGLE_VALUE_TYPE(switches::kEnableSaveAsMenuLabelExperiment)},
2049 {"enable-generic-sensor", IDS_FLAGS_ENABLE_GENERIC_SENSOR_NAME, 2049 {"enable-generic-sensor", IDS_FLAGS_ENABLE_GENERIC_SENSOR_NAME,
2050 IDS_FLAGS_ENABLE_GENERIC_SENSOR_DESCRIPTION, kOsAndroid | kOsMac, 2050 IDS_FLAGS_ENABLE_GENERIC_SENSOR_DESCRIPTION,
2051 kOsAndroid | kOsMac | kOsLinux | kOsCrOS,
2051 FEATURE_VALUE_TYPE(features::kGenericSensor)}, 2052 FEATURE_VALUE_TYPE(features::kGenericSensor)},
2052 {"expensive-background-timer-throttling", 2053 {"expensive-background-timer-throttling",
2053 IDS_FLAGS_EXPENSIVE_BACKGROUND_TIMER_THROTTLING_NAME, 2054 IDS_FLAGS_EXPENSIVE_BACKGROUND_TIMER_THROTTLING_NAME,
2054 IDS_FLAGS_EXPENSIVE_BACKGROUND_TIMER_THROTTLING_DESCRIPTION, kOsAll, 2055 IDS_FLAGS_EXPENSIVE_BACKGROUND_TIMER_THROTTLING_DESCRIPTION, kOsAll,
2055 FEATURE_VALUE_TYPE(features::kExpensiveBackgroundTimerThrottling)}, 2056 FEATURE_VALUE_TYPE(features::kExpensiveBackgroundTimerThrottling)},
2056 {"security-chip", IDS_FLAGS_SECURITY_CHIP_NAME, 2057 {"security-chip", IDS_FLAGS_SECURITY_CHIP_NAME,
2057 IDS_FLAGS_SECURITY_CHIP_DESCRIPTION, kOsDesktop, 2058 IDS_FLAGS_SECURITY_CHIP_DESCRIPTION, kOsDesktop,
2058 MULTI_VALUE_TYPE(kSecurityChipChoices)}, 2059 MULTI_VALUE_TYPE(kSecurityChipChoices)},
2059 {"security-chip-animation", IDS_FLAGS_SECURITY_CHIP_ANIMATION_NAME, 2060 {"security-chip-animation", IDS_FLAGS_SECURITY_CHIP_ANIMATION_NAME,
2060 IDS_FLAGS_SECURITY_CHIP_ANIMATION_DESCRIPTION, kOsDesktop, 2061 IDS_FLAGS_SECURITY_CHIP_ANIMATION_DESCRIPTION, kOsDesktop,
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
2276 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2277 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2277 2278
2278 const FeatureEntry* GetFeatureEntries(size_t* count) { 2279 const FeatureEntry* GetFeatureEntries(size_t* count) {
2279 *count = arraysize(kFeatureEntries); 2280 *count = arraysize(kFeatureEntries);
2280 return kFeatureEntries; 2281 return kFeatureEntries;
2281 } 2282 }
2282 2283
2283 } // namespace testing 2284 } // namespace testing
2284 2285
2285 } // namespace about_flags 2286 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698