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

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

Issue 15081003: Add flag to enable syncfs directory support to about:flags. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after
1459 kOsAll, 1459 kOsAll,
1460 SINGLE_VALUE_TYPE(switches::kEnableWebPInAcceptHeader) 1460 SINGLE_VALUE_TYPE(switches::kEnableWebPInAcceptHeader)
1461 }, 1461 },
1462 { 1462 {
1463 "apps-use-native-frame", 1463 "apps-use-native-frame",
1464 IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_NAME, 1464 IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_NAME,
1465 IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_DESCRIPTION, 1465 IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_DESCRIPTION,
1466 kOsWin, 1466 kOsWin,
1467 SINGLE_VALUE_TYPE(switches::kAppsUseNativeFrame) 1467 SINGLE_VALUE_TYPE(switches::kAppsUseNativeFrame)
1468 }, 1468 },
1469 {
1470 "enable-sync-directory-operation",
1471 IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_NAME,
1472 IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_DESCRIPTION,
1473 kOsAll,
1474 SINGLE_VALUE_TYPE(switches::kSyncEnableDirectoryOperation),
kinuko 2013/05/09 03:36:44 Our initial flag naming was bad, but can you renam
1475 },
1469 }; 1476 };
1470 1477
1471 const Experiment* experiments = kExperiments; 1478 const Experiment* experiments = kExperiments;
1472 size_t num_experiments = arraysize(kExperiments); 1479 size_t num_experiments = arraysize(kExperiments);
1473 1480
1474 // Stores and encapsulates the little state that about:flags has. 1481 // Stores and encapsulates the little state that about:flags has.
1475 class FlagsState { 1482 class FlagsState {
1476 public: 1483 public:
1477 FlagsState() : needs_restart_(false) {} 1484 FlagsState() : needs_restart_(false) {}
1478 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1485 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1959 } 1966 }
1960 1967
1961 const Experiment* GetExperiments(size_t* count) { 1968 const Experiment* GetExperiments(size_t* count) {
1962 *count = num_experiments; 1969 *count = num_experiments;
1963 return experiments; 1970 return experiments;
1964 } 1971 }
1965 1972
1966 } // namespace testing 1973 } // namespace testing
1967 1974
1968 } // namespace about_flags 1975 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698