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

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: Rebased Created 4 years, 11 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "ui/base/l10n/l10n_util.h" 60 #include "ui/base/l10n/l10n_util.h"
61 #include "ui/base/ui_base_switches.h" 61 #include "ui/base/ui_base_switches.h"
62 #include "ui/display/display_switches.h" 62 #include "ui/display/display_switches.h"
63 #include "ui/events/event_switches.h" 63 #include "ui/events/event_switches.h"
64 #include "ui/gfx/switches.h" 64 #include "ui/gfx/switches.h"
65 #include "ui/gl/gl_switches.h" 65 #include "ui/gl/gl_switches.h"
66 #include "ui/keyboard/keyboard_switches.h" 66 #include "ui/keyboard/keyboard_switches.h"
67 #include "ui/native_theme/native_theme_switches.h" 67 #include "ui/native_theme/native_theme_switches.h"
68 #include "ui/views/views_switches.h" 68 #include "ui/views/views_switches.h"
69 69
70 #if !defined(OS_ANDROID) 70 #if defined(OS_ANDROID)
71 #include "chrome/browser/android/chrome_feature_list.h"
72 #else
71 #include "ui/message_center/message_center_switches.h" 73 #include "ui/message_center/message_center_switches.h"
72 #endif 74 #endif
73 75
74 #if defined(OS_CHROMEOS) 76 #if defined(OS_CHROMEOS)
75 #include "chromeos/chromeos_switches.h" 77 #include "chromeos/chromeos_switches.h"
76 #include "third_party/cros_system_api/switches/chrome_switches.h" 78 #include "third_party/cros_system_api/switches/chrome_switches.h"
77 #endif 79 #endif
78 80
79 #if defined(OS_WIN) 81 #if defined(OS_WIN)
80 #include "components/search_engines/desktop_search_win.h" 82 #include "components/search_engines/desktop_search_win.h"
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 #if defined(OS_ANDROID) 1323 #if defined(OS_ANDROID)
1322 {"enable-accessibility-tab-switcher", 1324 {"enable-accessibility-tab-switcher",
1323 IDS_FLAGS_ACCESSIBILITY_TAB_SWITCHER_NAME, 1325 IDS_FLAGS_ACCESSIBILITY_TAB_SWITCHER_NAME,
1324 IDS_FLAGS_ACCESSIBILITY_TAB_SWITCHER_DESCRIPTION, 1326 IDS_FLAGS_ACCESSIBILITY_TAB_SWITCHER_DESCRIPTION,
1325 kOsAndroid, 1327 kOsAndroid,
1326 SINGLE_VALUE_TYPE(switches::kEnableAccessibilityTabSwitcher)}, 1328 SINGLE_VALUE_TYPE(switches::kEnableAccessibilityTabSwitcher)},
1327 {"enable-physical-web", 1329 {"enable-physical-web",
1328 IDS_FLAGS_ENABLE_PHYSICAL_WEB_NAME, 1330 IDS_FLAGS_ENABLE_PHYSICAL_WEB_NAME,
1329 IDS_FLAGS_ENABLE_PHYSICAL_WEB_DESCRIPTION, 1331 IDS_FLAGS_ENABLE_PHYSICAL_WEB_DESCRIPTION,
1330 kOsAndroid, 1332 kOsAndroid,
1331 SINGLE_VALUE_TYPE(switches::kEnablePhysicalWeb)}, 1333 FEATURE_VALUE_TYPE(chrome::android::kPhysicalWebFeature)},
1332 #endif 1334 #endif
1333 {"enable-zero-copy", 1335 {"enable-zero-copy",
1334 IDS_FLAGS_ZERO_COPY_NAME, 1336 IDS_FLAGS_ZERO_COPY_NAME,
1335 IDS_FLAGS_ZERO_COPY_DESCRIPTION, 1337 IDS_FLAGS_ZERO_COPY_DESCRIPTION,
1336 kOsAll, 1338 kOsAll,
1337 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableZeroCopy, 1339 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableZeroCopy,
1338 switches::kDisableZeroCopy)}, 1340 switches::kDisableZeroCopy)},
1339 #if defined(OS_CHROMEOS) 1341 #if defined(OS_CHROMEOS)
1340 {"enable-first-run-ui-transitions", 1342 {"enable-first-run-ui-transitions",
1341 IDS_FLAGS_FIRST_RUN_UI_TRANSITIONS_NAME, 1343 IDS_FLAGS_FIRST_RUN_UI_TRANSITIONS_NAME,
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
2295 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2297 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2296 2298
2297 const FeatureEntry* GetFeatureEntries(size_t* count) { 2299 const FeatureEntry* GetFeatureEntries(size_t* count) {
2298 *count = arraysize(kFeatureEntries); 2300 *count = arraysize(kFeatureEntries);
2299 return kFeatureEntries; 2301 return kFeatureEntries;
2300 } 2302 }
2301 2303
2302 } // namespace testing 2304 } // namespace testing
2303 2305
2304 } // namespace about_flags 2306 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698