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

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

Issue 14924002: WebUI for Profile Settings Reset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed 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 | 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 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 kOsWin, 1440 kOsWin,
1441 SINGLE_VALUE_TYPE(switches::kAppsUseNativeFrame) 1441 SINGLE_VALUE_TYPE(switches::kAppsUseNativeFrame)
1442 }, 1442 },
1443 { 1443 {
1444 "enable-syncfs-directory-operation", 1444 "enable-syncfs-directory-operation",
1445 IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_NAME, 1445 IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_NAME,
1446 IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_DESCRIPTION, 1446 IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_DESCRIPTION,
1447 kOsAll, 1447 kOsAll,
1448 SINGLE_VALUE_TYPE(switches::kSyncfsEnableDirectoryOperation), 1448 SINGLE_VALUE_TYPE(switches::kSyncfsEnableDirectoryOperation),
1449 }, 1449 },
1450 {
1451 "enable-reset-profile-settings",
1452 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_NAME,
1453 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_DESCRIPTION,
1454 kOsAll,
1455 SINGLE_VALUE_TYPE(switches::kEnableResetProfileSettings)
1456 },
1450 }; 1457 };
1451 1458
1452 const Experiment* experiments = kExperiments; 1459 const Experiment* experiments = kExperiments;
1453 size_t num_experiments = arraysize(kExperiments); 1460 size_t num_experiments = arraysize(kExperiments);
1454 1461
1455 // Stores and encapsulates the little state that about:flags has. 1462 // Stores and encapsulates the little state that about:flags has.
1456 class FlagsState { 1463 class FlagsState {
1457 public: 1464 public:
1458 FlagsState() : needs_restart_(false) {} 1465 FlagsState() : needs_restart_(false) {}
1459 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1466 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 } 1951 }
1945 1952
1946 const Experiment* GetExperiments(size_t* count) { 1953 const Experiment* GetExperiments(size_t* count) {
1947 *count = num_experiments; 1954 *count = num_experiments;
1948 return experiments; 1955 return experiments;
1949 } 1956 }
1950 1957
1951 } // namespace testing 1958 } // namespace testing
1952 1959
1953 } // namespace about_flags 1960 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698