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

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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/profile_resetter/profile_resetter.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 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 kOsWin, 1449 kOsWin,
1450 SINGLE_VALUE_TYPE(switches::kAppsUseNativeFrame) 1450 SINGLE_VALUE_TYPE(switches::kAppsUseNativeFrame)
1451 }, 1451 },
1452 { 1452 {
1453 "enable-syncfs-directory-operation", 1453 "enable-syncfs-directory-operation",
1454 IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_NAME, 1454 IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_NAME,
1455 IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_DESCRIPTION, 1455 IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_DESCRIPTION,
1456 kOsAll, 1456 kOsAll,
1457 SINGLE_VALUE_TYPE(switches::kSyncfsEnableDirectoryOperation), 1457 SINGLE_VALUE_TYPE(switches::kSyncfsEnableDirectoryOperation),
1458 }, 1458 },
1459 {
1460 "enable-reset-profile-settings",
1461 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_NAME,
1462 IDS_FLAGS_ENABLE_RESET_PROFILE_SETTINGS_DESCRIPTION,
1463 kOsAll,
1464 SINGLE_VALUE_TYPE(switches::kEnableResetProfileSettings)
1465 },
1459 }; 1466 };
1460 1467
1461 const Experiment* experiments = kExperiments; 1468 const Experiment* experiments = kExperiments;
1462 size_t num_experiments = arraysize(kExperiments); 1469 size_t num_experiments = arraysize(kExperiments);
1463 1470
1464 // Stores and encapsulates the little state that about:flags has. 1471 // Stores and encapsulates the little state that about:flags has.
1465 class FlagsState { 1472 class FlagsState {
1466 public: 1473 public:
1467 FlagsState() : needs_restart_(false) {} 1474 FlagsState() : needs_restart_(false) {}
1468 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1475 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1953 } 1960 }
1954 1961
1955 const Experiment* GetExperiments(size_t* count) { 1962 const Experiment* GetExperiments(size_t* count) {
1956 *count = num_experiments; 1963 *count = num_experiments;
1957 return experiments; 1964 return experiments;
1958 } 1965 }
1959 1966
1960 } // namespace testing 1967 } // namespace testing
1961 1968
1962 } // namespace about_flags 1969 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/profile_resetter/profile_resetter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698