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

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

Issue 15675008: Add enable-app-launcher-shim to chrome://flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 kOsAndroid, 1456 kOsAndroid,
1457 SINGLE_VALUE_TYPE(switches::kEnableDraggableMenuButton) 1457 SINGLE_VALUE_TYPE(switches::kEnableDraggableMenuButton)
1458 }, 1458 },
1459 { 1459 {
1460 "enable-reset-profile-settings", 1460 "enable-reset-profile-settings",
1461 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_NAME, 1461 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_NAME,
1462 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_DESCRIPTION, 1462 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_DESCRIPTION,
1463 kOsAll, 1463 kOsAll,
1464 SINGLE_VALUE_TYPE(switches::kEnableResetProfileSettings) 1464 SINGLE_VALUE_TYPE(switches::kEnableResetProfileSettings)
1465 }, 1465 },
1466 #if defined(OS_MACOSX)
1467 {
1468 "enable-app-list-shim",
1469 IDS_FLAGS_ENABLE_APP_LIST_SHIM_NAME,
1470 IDS_FLAGS_ENABLE_APP_LIST_SHIM_DESCRIPTION,
1471 kOsMac,
1472 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
1473 switches::kEnableAppListShim, "1",
benwells 2013/05/29 06:33:38 I don't remember the windows one being so complica
tapted 2013/05/29 06:37:24 The rationale for doing it this way is that it avo
1474 switches::kEnableAppListShim, "0")
1475 },
1476 #endif
1466 }; 1477 };
1467 1478
1468 const Experiment* experiments = kExperiments; 1479 const Experiment* experiments = kExperiments;
1469 size_t num_experiments = arraysize(kExperiments); 1480 size_t num_experiments = arraysize(kExperiments);
1470 1481
1471 // Stores and encapsulates the little state that about:flags has. 1482 // Stores and encapsulates the little state that about:flags has.
1472 class FlagsState { 1483 class FlagsState {
1473 public: 1484 public:
1474 FlagsState() : needs_restart_(false) {} 1485 FlagsState() : needs_restart_(false) {}
1475 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1486 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1960 } 1971 }
1961 1972
1962 const Experiment* GetExperiments(size_t* count) { 1973 const Experiment* GetExperiments(size_t* count) {
1963 *count = num_experiments; 1974 *count = num_experiments;
1964 return experiments; 1975 return experiments;
1965 } 1976 }
1966 1977
1967 } // namespace testing 1978 } // namespace testing
1968 1979
1969 } // namespace about_flags 1980 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698