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

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

Issue 10827146: crbug.com/127841 - Request Tablet Site on CB with touch screen. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebasing Created 8 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser_command_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 SINGLE_VALUE_TYPE(switches::kEnableContacts) 916 SINGLE_VALUE_TYPE(switches::kEnableContacts)
917 }, 917 },
918 #if defined(USE_ASH) 918 #if defined(USE_ASH)
919 { "ash-enable-advanced-gestures", 919 { "ash-enable-advanced-gestures",
920 IDS_FLAGS_ENABLE_ADVANCED_GESTURES_NAME, 920 IDS_FLAGS_ENABLE_ADVANCED_GESTURES_NAME,
921 IDS_FLAGS_ENABLE_ADVANCED_GESTURES_DESCRIPTION, 921 IDS_FLAGS_ENABLE_ADVANCED_GESTURES_DESCRIPTION,
922 kOsCrOS, 922 kOsCrOS,
923 SINGLE_VALUE_TYPE(ash::switches::kAshEnableAdvancedGestures), 923 SINGLE_VALUE_TYPE(ash::switches::kAshEnableAdvancedGestures),
924 }, 924 },
925 #endif 925 #endif
926 #if defined(OS_CHROMEOS)
927 {
928 "enable-request-tablet-site",
929 IDS_FLAGS_ENABLE_REQUEST_TABLET_SITE_NAME,
930 IDS_FLAGS_ENABLE_REQUEST_TABLET_SITE_DESCRIPTION,
931 kOsCrOS,
932 SINGLE_VALUE_TYPE(switches::kEnableRequestTabletSite)
933 },
934 #endif
926 }; 935 };
927 936
928 const Experiment* experiments = kExperiments; 937 const Experiment* experiments = kExperiments;
929 size_t num_experiments = arraysize(kExperiments); 938 size_t num_experiments = arraysize(kExperiments);
930 939
931 // Stores and encapsulates the little state that about:flags has. 940 // Stores and encapsulates the little state that about:flags has.
932 class FlagsState { 941 class FlagsState {
933 public: 942 public:
934 FlagsState() : needs_restart_(false) {} 943 FlagsState() : needs_restart_(false) {}
935 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 944 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 } 1361 }
1353 1362
1354 const Experiment* GetExperiments(size_t* count) { 1363 const Experiment* GetExperiments(size_t* count) {
1355 *count = num_experiments; 1364 *count = num_experiments;
1356 return experiments; 1365 return experiments;
1357 } 1366 }
1358 1367
1359 } // namespace testing 1368 } // namespace testing
1360 1369
1361 } // namespace about_flags 1370 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser_command_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698