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

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

Issue 1289423002: Add webusb notification UI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use USB_DEVICE_NAME instead of USB_DEVICE_PRODUCT_NAME in generated_resources.grd Created 5 years, 3 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 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 SINGLE_VALUE_TYPE(switches::kTraceExportEventsToETW)}, 2060 SINGLE_VALUE_TYPE(switches::kTraceExportEventsToETW)},
2061 #endif // defined(OS_WIN) 2061 #endif // defined(OS_WIN)
2062 #if defined(ENABLE_BACKGROUND) 2062 #if defined(ENABLE_BACKGROUND)
2063 {"enable-push-api-background-mode", 2063 {"enable-push-api-background-mode",
2064 IDS_FLAGS_ENABLE_PUSH_API_BACKGROUND_MODE_NAME, 2064 IDS_FLAGS_ENABLE_PUSH_API_BACKGROUND_MODE_NAME,
2065 IDS_FLAGS_ENABLE_PUSH_API_BACKGROUND_MODE_DESCRIPTION, 2065 IDS_FLAGS_ENABLE_PUSH_API_BACKGROUND_MODE_DESCRIPTION,
2066 kOsMac | kOsWin | kOsLinux, 2066 kOsMac | kOsWin | kOsLinux,
2067 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePushApiBackgroundMode, 2067 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePushApiBackgroundMode,
2068 switches::kDisablePushApiBackgroundMode)}, 2068 switches::kDisablePushApiBackgroundMode)},
2069 #endif // defined(ENABLE_BACKGROUND) 2069 #endif // defined(ENABLE_BACKGROUND)
2070 #if !defined(OS_ANDROID) && !defined(OS_IOS)
2071 {"enable-webusb-notifications",
2072 IDS_FLAGS_ENABLE_WEBUSB_NOTIFICATIONS_NAME,
2073 IDS_FLAGS_ENABLE_WEBUSB_NOTIFICATIONS_DESCRIPTION,
2074 kOsDesktop,
2075 SINGLE_VALUE_TYPE(switches::kEnableWebUsbNotifications)},
2076 #endif
2070 // NOTE: Adding new command-line switches requires adding corresponding 2077 // NOTE: Adding new command-line switches requires adding corresponding
2071 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2078 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2072 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2079 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2073 }; 2080 };
2074 2081
2075 const Experiment* experiments = kExperiments; 2082 const Experiment* experiments = kExperiments;
2076 size_t num_experiments = arraysize(kExperiments); 2083 size_t num_experiments = arraysize(kExperiments);
2077 2084
2078 // Stores and encapsulates the little state that about:flags has. 2085 // Stores and encapsulates the little state that about:flags has.
2079 class FlagsState { 2086 class FlagsState {
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
2702 } 2709 }
2703 2710
2704 const Experiment* GetExperiments(size_t* count) { 2711 const Experiment* GetExperiments(size_t* count) {
2705 *count = num_experiments; 2712 *count = num_experiments;
2706 return experiments; 2713 return experiments;
2707 } 2714 }
2708 2715
2709 } // namespace testing 2716 } // namespace testing
2710 2717
2711 } // namespace about_flags 2718 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698