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

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

Issue 15026008: Add enable-sync-directory-operation to about:flags (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: comments Created 7 years, 7 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') | webkit/fileapi/syncable/syncable_file_system_util.h » ('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 15 matching lines...) Expand all
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
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(
1470 sync_file_system::GetFlagForSyncFileSystemDirectoryOperation())
1471 },
1463 }; 1472 };
1464 1473
1465 const Experiment* experiments = kExperiments; 1474 const Experiment* experiments = kExperiments;
1466 size_t num_experiments = arraysize(kExperiments); 1475 size_t num_experiments = arraysize(kExperiments);
1467 1476
1468 // Stores and encapsulates the little state that about:flags has. 1477 // Stores and encapsulates the little state that about:flags has.
1469 class FlagsState { 1478 class FlagsState {
1470 public: 1479 public:
1471 FlagsState() : needs_restart_(false) {} 1480 FlagsState() : needs_restart_(false) {}
1472 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1481 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1953 } 1962 }
1954 1963
1955 const Experiment* GetExperiments(size_t* count) { 1964 const Experiment* GetExperiments(size_t* count) {
1956 *count = num_experiments; 1965 *count = num_experiments;
1957 return experiments; 1966 return experiments;
1958 } 1967 }
1959 1968
1960 } // namespace testing 1969 } // namespace testing
1961 1970
1962 } // namespace about_flags 1971 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | webkit/fileapi/syncable/syncable_file_system_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698