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

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

Issue 455623003: stale-while-revalidate experimental implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove --disable-stale-while-revalidate flag and strengthen must-revalidate. Created 6 years, 3 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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 }, 1148 },
1149 { 1149 {
1150 "enable-touch-editing", 1150 "enable-touch-editing",
1151 IDS_FLAGS_ENABLE_TOUCH_EDITING_NAME, 1151 IDS_FLAGS_ENABLE_TOUCH_EDITING_NAME,
1152 IDS_FLAGS_ENABLE_TOUCH_EDITING_DESCRIPTION, 1152 IDS_FLAGS_ENABLE_TOUCH_EDITING_DESCRIPTION,
1153 kOsCrOS | kOsWin | kOsLinux, 1153 kOsCrOS | kOsWin | kOsLinux,
1154 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTouchEditing, 1154 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTouchEditing,
1155 switches::kDisableTouchEditing) 1155 switches::kDisableTouchEditing)
1156 }, 1156 },
1157 { 1157 {
1158 "enable-stale-while-revalidate",
1159 IDS_FLAGS_ENABLE_STALE_WHILE_REVALIDATE_NAME,
1160 IDS_FLAGS_ENABLE_STALE_WHILE_REVALIDATE_DESCRIPTION,
1161 kOsAll,
1162 SINGLE_VALUE_TYPE(switches::kEnableStaleWhileRevalidate)
1163 },
1164 {
1158 "enable-suggestions-service", 1165 "enable-suggestions-service",
1159 IDS_FLAGS_ENABLE_SUGGESTIONS_SERVICE_NAME, 1166 IDS_FLAGS_ENABLE_SUGGESTIONS_SERVICE_NAME,
1160 IDS_FLAGS_ENABLE_SUGGESTIONS_SERVICE_DESCRIPTION, 1167 IDS_FLAGS_ENABLE_SUGGESTIONS_SERVICE_DESCRIPTION,
1161 kOsAndroid | kOsCrOS, 1168 kOsAndroid | kOsCrOS,
1162 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSuggestionsService, 1169 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSuggestionsService,
1163 switches::kDisableSuggestionsService) 1170 switches::kDisableSuggestionsService)
1164 }, 1171 },
1165 { 1172 {
1166 "enable-sync-synced-notifications", 1173 "enable-sync-synced-notifications",
1167 IDS_FLAGS_ENABLE_SYNCED_NOTIFICATIONS_NAME, 1174 IDS_FLAGS_ENABLE_SYNCED_NOTIFICATIONS_NAME,
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 } 2478 }
2472 2479
2473 const Experiment* GetExperiments(size_t* count) { 2480 const Experiment* GetExperiments(size_t* count) {
2474 *count = num_experiments; 2481 *count = num_experiments;
2475 return experiments; 2482 return experiments;
2476 } 2483 }
2477 2484
2478 } // namespace testing 2485 } // namespace testing
2479 2486
2480 } // namespace about_flags 2487 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698