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

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

Issue 2053573002: Speculatively launch Service Workers on mouse/touch events. [5/5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 MULTI_VALUE_TYPE(kTraceUploadURL)}, 1105 MULTI_VALUE_TYPE(kTraceUploadURL)},
1106 {"enable-stale-while-revalidate", 1106 {"enable-stale-while-revalidate",
1107 IDS_FLAGS_ENABLE_STALE_WHILE_REVALIDATE_NAME, 1107 IDS_FLAGS_ENABLE_STALE_WHILE_REVALIDATE_NAME,
1108 IDS_FLAGS_ENABLE_STALE_WHILE_REVALIDATE_DESCRIPTION, kOsAll, 1108 IDS_FLAGS_ENABLE_STALE_WHILE_REVALIDATE_DESCRIPTION, kOsAll,
1109 FEATURE_VALUE_TYPE(features::kStaleWhileRevalidate)}, 1109 FEATURE_VALUE_TYPE(features::kStaleWhileRevalidate)},
1110 {"enable-suggestions-with-substring-match", 1110 {"enable-suggestions-with-substring-match",
1111 IDS_FLAGS_SUGGESTIONS_WITH_SUB_STRING_MATCH_NAME, 1111 IDS_FLAGS_SUGGESTIONS_WITH_SUB_STRING_MATCH_NAME,
1112 IDS_FLAGS_SUGGESTIONS_WITH_SUB_STRING_MATCH_DESCRIPTION, kOsAll, 1112 IDS_FLAGS_SUGGESTIONS_WITH_SUB_STRING_MATCH_DESCRIPTION, kOsAll,
1113 SINGLE_VALUE_TYPE( 1113 SINGLE_VALUE_TYPE(
1114 autofill::switches::kEnableSuggestionsWithSubstringMatch)}, 1114 autofill::switches::kEnableSuggestionsWithSubstringMatch)},
1115 {"enable-speculative-launch-service-worker",
1116 IDS_FLAGS_SPECULATIVE_LAUNCH_SERVICE_WORKER_NAME,
1117 IDS_FLAGS_SPECULATIVE_LAUNCH_SERVICE_WORKER_DESCRIPTION, kOsAll,
1118 FEATURE_VALUE_TYPE(features::kSpeculativeLaunchServiceWorker)},
1115 {"enable-supervised-user-managed-bookmarks-folder", 1119 {"enable-supervised-user-managed-bookmarks-folder",
1116 IDS_FLAGS_SUPERVISED_USER_MANAGED_BOOKMARKS_FOLDER_NAME, 1120 IDS_FLAGS_SUPERVISED_USER_MANAGED_BOOKMARKS_FOLDER_NAME,
1117 IDS_FLAGS_SUPERVISED_USER_MANAGED_BOOKMARKS_FOLDER_DESCRIPTION, kOsAll, 1121 IDS_FLAGS_SUPERVISED_USER_MANAGED_BOOKMARKS_FOLDER_DESCRIPTION, kOsAll,
1118 SINGLE_VALUE_TYPE(switches::kEnableSupervisedUserManagedBookmarksFolder)}, 1122 SINGLE_VALUE_TYPE(switches::kEnableSupervisedUserManagedBookmarksFolder)},
1119 #if defined(ENABLE_APP_LIST) 1123 #if defined(ENABLE_APP_LIST)
1120 {"enable-sync-app-list", IDS_FLAGS_SYNC_APP_LIST_NAME, 1124 {"enable-sync-app-list", IDS_FLAGS_SYNC_APP_LIST_NAME,
1121 IDS_FLAGS_SYNC_APP_LIST_DESCRIPTION, kOsDesktop, 1125 IDS_FLAGS_SYNC_APP_LIST_DESCRIPTION, kOsDesktop,
1122 ENABLE_DISABLE_VALUE_TYPE(app_list::switches::kEnableSyncAppList, 1126 ENABLE_DISABLE_VALUE_TYPE(app_list::switches::kEnableSyncAppList,
1123 app_list::switches::kDisableSyncAppList)}, 1127 app_list::switches::kDisableSyncAppList)},
1124 #endif 1128 #endif
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
2226 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2230 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2227 2231
2228 const FeatureEntry* GetFeatureEntries(size_t* count) { 2232 const FeatureEntry* GetFeatureEntries(size_t* count) {
2229 *count = arraysize(kFeatureEntries); 2233 *count = arraysize(kFeatureEntries);
2230 return kFeatureEntries; 2234 return kFeatureEntries;
2231 } 2235 }
2232 2236
2233 } // namespace testing 2237 } // namespace testing
2234 2238
2235 } // namespace about_flags 2239 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698