OLD | NEW |
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 15 matching lines...) Expand all Loading... |
26 #include "grit/generated_resources.h" | 26 #include "grit/generated_resources.h" |
27 #include "grit/google_chrome_strings.h" | 27 #include "grit/google_chrome_strings.h" |
28 #include "media/base/media_switches.h" | 28 #include "media/base/media_switches.h" |
29 #include "ui/app_list/app_list_switches.h" | 29 #include "ui/app_list/app_list_switches.h" |
30 #include "ui/base/l10n/l10n_util.h" | 30 #include "ui/base/l10n/l10n_util.h" |
31 #include "ui/base/ui_base_switches.h" | 31 #include "ui/base/ui_base_switches.h" |
32 #include "ui/gfx/switches.h" | 32 #include "ui/gfx/switches.h" |
33 #include "ui/gl/gl_switches.h" | 33 #include "ui/gl/gl_switches.h" |
34 #include "ui/keyboard/keyboard_switches.h" | 34 #include "ui/keyboard/keyboard_switches.h" |
35 #include "ui/surface/surface_switches.h" | 35 #include "ui/surface/surface_switches.h" |
| 36 #include "webkit/fileapi/syncable/syncable_file_system_util.h" |
36 | 37 |
37 #if defined(ENABLE_MESSAGE_CENTER) | 38 #if defined(ENABLE_MESSAGE_CENTER) |
38 #include "ui/message_center/message_center_switches.h" | 39 #include "ui/message_center/message_center_switches.h" |
39 #endif | 40 #endif |
40 | 41 |
41 #if defined(USE_ASH) | 42 #if defined(USE_ASH) |
42 #include "ash/ash_switches.h" | 43 #include "ash/ash_switches.h" |
43 #endif | 44 #endif |
44 | 45 |
45 #if defined(OS_CHROMEOS) | 46 #if defined(OS_CHROMEOS) |
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1453 kOsAll, | 1454 kOsAll, |
1454 SINGLE_VALUE_TYPE(switches::kEnableWebPInAcceptHeader) | 1455 SINGLE_VALUE_TYPE(switches::kEnableWebPInAcceptHeader) |
1455 }, | 1456 }, |
1456 { | 1457 { |
1457 "apps-use-native-frame", | 1458 "apps-use-native-frame", |
1458 IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_NAME, | 1459 IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_NAME, |
1459 IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_DESCRIPTION, | 1460 IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_DESCRIPTION, |
1460 kOsWin, | 1461 kOsWin, |
1461 SINGLE_VALUE_TYPE(switches::kAppsUseNativeFrame) | 1462 SINGLE_VALUE_TYPE(switches::kAppsUseNativeFrame) |
1462 }, | 1463 }, |
| 1464 { |
| 1465 "enable-sync-directory-operation", |
| 1466 IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_NAME, |
| 1467 IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_DESCRIPTION, |
| 1468 kOsAll, |
| 1469 SINGLE_VALUE_TYPE(sync_file_system::GetFlagForDirectoryOperation()) |
| 1470 }, |
1463 }; | 1471 }; |
1464 | 1472 |
1465 const Experiment* experiments = kExperiments; | 1473 const Experiment* experiments = kExperiments; |
1466 size_t num_experiments = arraysize(kExperiments); | 1474 size_t num_experiments = arraysize(kExperiments); |
1467 | 1475 |
1468 // Stores and encapsulates the little state that about:flags has. | 1476 // Stores and encapsulates the little state that about:flags has. |
1469 class FlagsState { | 1477 class FlagsState { |
1470 public: | 1478 public: |
1471 FlagsState() : needs_restart_(false) {} | 1479 FlagsState() : needs_restart_(false) {} |
1472 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1480 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1953 } | 1961 } |
1954 | 1962 |
1955 const Experiment* GetExperiments(size_t* count) { | 1963 const Experiment* GetExperiments(size_t* count) { |
1956 *count = num_experiments; | 1964 *count = num_experiments; |
1957 return experiments; | 1965 return experiments; |
1958 } | 1966 } |
1959 | 1967 |
1960 } // namespace testing | 1968 } // namespace testing |
1961 | 1969 |
1962 } // namespace about_flags | 1970 } // namespace about_flags |
OLD | NEW |