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

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

Issue 16191003: Add enable-app-shims to chrome://flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pass --enable-app-shims through to NPT 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-shims",
1469 IDS_FLAGS_ENABLE_APP_SHIMS_NAME,
1470 IDS_FLAGS_ENABLE_APP_SHIMS_DESCRIPTION,
1471 kOsMac,
1472 SINGLE_VALUE_TYPE(switches::kEnableAppShims)
1473 },
1474 #endif
1466 }; 1475 };
1467 1476
1468 const Experiment* experiments = kExperiments; 1477 const Experiment* experiments = kExperiments;
1469 size_t num_experiments = arraysize(kExperiments); 1478 size_t num_experiments = arraysize(kExperiments);
1470 1479
1471 // Stores and encapsulates the little state that about:flags has. 1480 // Stores and encapsulates the little state that about:flags has.
1472 class FlagsState { 1481 class FlagsState {
1473 public: 1482 public:
1474 FlagsState() : needs_restart_(false) {} 1483 FlagsState() : needs_restart_(false) {}
1475 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1484 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1960 } 1969 }
1961 1970
1962 const Experiment* GetExperiments(size_t* count) { 1971 const Experiment* GetExperiments(size_t* count) {
1963 *count = num_experiments; 1972 *count = num_experiments;
1964 return experiments; 1973 return experiments;
1965 } 1974 }
1966 1975
1967 } // namespace testing 1976 } // namespace testing
1968 1977
1969 } // namespace about_flags 1978 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698