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

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

Issue 1512113002: Read feature param for Physical Web experiment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Used new feature API Created 5 years 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>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/feature_list.h" 15 #include "base/feature_list.h"
16 #include "base/i18n/base_i18n_switches.h" 16 #include "base/i18n/base_i18n_switches.h"
17 #include "base/memory/singleton.h" 17 #include "base/memory/singleton.h"
18 #include "base/metrics/metrics_hashes.h" 18 #include "base/metrics/metrics_hashes.h"
19 #include "base/metrics/sparse_histogram.h" 19 #include "base/metrics/sparse_histogram.h"
20 #include "base/stl_util.h" 20 #include "base/stl_util.h"
21 #include "base/strings/string_number_conversions.h" 21 #include "base/strings/string_number_conversions.h"
22 #include "base/strings/string_util.h" 22 #include "base/strings/string_util.h"
23 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
24 #include "base/values.h" 24 #include "base/values.h"
25 #include "cc/base/switches.h" 25 #include "cc/base/switches.h"
26 #include "chrome/browser/android/chrome_feature_list.h"
Alexei Svitkine (slow) 2015/12/21 15:50:50 I think this needs to be in ifdef android, since i
cco3 2015/12/21 18:10:11 Done.
26 #include "chrome/common/channel_info.h" 27 #include "chrome/common/channel_info.h"
27 #include "chrome/common/chrome_content_client.h" 28 #include "chrome/common/chrome_content_client.h"
28 #include "chrome/common/chrome_switches.h" 29 #include "chrome/common/chrome_switches.h"
29 #include "chrome/grit/chromium_strings.h" 30 #include "chrome/grit/chromium_strings.h"
30 #include "chrome/grit/generated_resources.h" 31 #include "chrome/grit/generated_resources.h"
31 #include "chrome/grit/google_chrome_strings.h" 32 #include "chrome/grit/google_chrome_strings.h"
32 #include "components/autofill/core/common/autofill_switches.h" 33 #include "components/autofill/core/common/autofill_switches.h"
33 #include "components/browser_sync/common/browser_sync_switches.h" 34 #include "components/browser_sync/common/browser_sync_switches.h"
34 #include "components/cloud_devices/common/cloud_devices_switches.h" 35 #include "components/cloud_devices/common/cloud_devices_switches.h"
35 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h" 36 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h"
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 #if defined(OS_ANDROID) 1319 #if defined(OS_ANDROID)
1319 {"enable-accessibility-tab-switcher", 1320 {"enable-accessibility-tab-switcher",
1320 IDS_FLAGS_ACCESSIBILITY_TAB_SWITCHER_NAME, 1321 IDS_FLAGS_ACCESSIBILITY_TAB_SWITCHER_NAME,
1321 IDS_FLAGS_ACCESSIBILITY_TAB_SWITCHER_DESCRIPTION, 1322 IDS_FLAGS_ACCESSIBILITY_TAB_SWITCHER_DESCRIPTION,
1322 kOsAndroid, 1323 kOsAndroid,
1323 SINGLE_VALUE_TYPE(switches::kEnableAccessibilityTabSwitcher)}, 1324 SINGLE_VALUE_TYPE(switches::kEnableAccessibilityTabSwitcher)},
1324 {"enable-physical-web", 1325 {"enable-physical-web",
1325 IDS_FLAGS_ENABLE_PHYSICAL_WEB_NAME, 1326 IDS_FLAGS_ENABLE_PHYSICAL_WEB_NAME,
1326 IDS_FLAGS_ENABLE_PHYSICAL_WEB_DESCRIPTION, 1327 IDS_FLAGS_ENABLE_PHYSICAL_WEB_DESCRIPTION,
1327 kOsAndroid, 1328 kOsAndroid,
1328 SINGLE_VALUE_TYPE(switches::kEnablePhysicalWeb)}, 1329 FEATURE_VALUE_TYPE(chrome::android::kPhysicalWebFeature)},
1329 #endif 1330 #endif
1330 {"enable-zero-copy", 1331 {"enable-zero-copy",
1331 IDS_FLAGS_ZERO_COPY_NAME, 1332 IDS_FLAGS_ZERO_COPY_NAME,
1332 IDS_FLAGS_ZERO_COPY_DESCRIPTION, 1333 IDS_FLAGS_ZERO_COPY_DESCRIPTION,
1333 kOsAll, 1334 kOsAll,
1334 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableZeroCopy, 1335 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableZeroCopy,
1335 switches::kDisableZeroCopy)}, 1336 switches::kDisableZeroCopy)},
1336 #if defined(OS_CHROMEOS) 1337 #if defined(OS_CHROMEOS)
1337 {"enable-first-run-ui-transitions", 1338 {"enable-first-run-ui-transitions",
1338 IDS_FLAGS_FIRST_RUN_UI_TRANSITIONS_NAME, 1339 IDS_FLAGS_FIRST_RUN_UI_TRANSITIONS_NAME,
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
2292 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2293 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2293 2294
2294 const FeatureEntry* GetFeatureEntries(size_t* count) { 2295 const FeatureEntry* GetFeatureEntries(size_t* count) {
2295 *count = arraysize(kFeatureEntries); 2296 *count = arraysize(kFeatureEntries);
2296 return kFeatureEntries; 2297 return kFeatureEntries;
2297 } 2298 }
2298 2299
2299 } // namespace testing 2300 } // namespace testing
2300 2301
2301 } // namespace about_flags 2302 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698