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

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

Issue 12096116: Enable dictionary sync by default (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove experiment from about flags Created 7 years, 10 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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 SINGLE_VALUE_TYPE(message_center::switches::kEnableRichNotifications) 1244 SINGLE_VALUE_TYPE(message_center::switches::kEnableRichNotifications)
1245 }, 1245 },
1246 #endif 1246 #endif
1247 { 1247 {
1248 "full-history-sync", 1248 "full-history-sync",
1249 IDS_FLAGS_FULL_HISTORY_SYNC_NAME, 1249 IDS_FLAGS_FULL_HISTORY_SYNC_NAME,
1250 IDS_FLAGS_FULL_HISTORY_SYNC_DESCRIPTION, 1250 IDS_FLAGS_FULL_HISTORY_SYNC_DESCRIPTION,
1251 kOsAll, 1251 kOsAll,
1252 SINGLE_VALUE_TYPE(switches::kHistoryEnableFullHistorySync) 1252 SINGLE_VALUE_TYPE(switches::kHistoryEnableFullHistorySync)
1253 }, 1253 },
1254 {
1255 "enable-sync-dictionary",
1256 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_NAME,
1257 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_DESCRIPTION,
1258 kOsWin | kOsCrOS | kOsLinux,
1259 SINGLE_VALUE_TYPE(switches::kEnableSyncDictionary)
1260 },
1261 }; 1254 };
1262 1255
1263 const Experiment* experiments = kExperiments; 1256 const Experiment* experiments = kExperiments;
1264 size_t num_experiments = arraysize(kExperiments); 1257 size_t num_experiments = arraysize(kExperiments);
1265 1258
1266 // Stores and encapsulates the little state that about:flags has. 1259 // Stores and encapsulates the little state that about:flags has.
1267 class FlagsState { 1260 class FlagsState {
1268 public: 1261 public:
1269 FlagsState() : needs_restart_(false) {} 1262 FlagsState() : needs_restart_(false) {}
1270 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1263 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1687 } 1680 }
1688 1681
1689 const Experiment* GetExperiments(size_t* count) { 1682 const Experiment* GetExperiments(size_t* count) {
1690 *count = num_experiments; 1683 *count = num_experiments;
1691 return experiments; 1684 return experiments;
1692 } 1685 }
1693 1686
1694 } // namespace testing 1687 } // namespace testing
1695 1688
1696 } // namespace about_flags 1689 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698