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

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

Issue 10416002: Seculative resource prefetching for URLs CL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing Dominich's comments. Created 8 years, 6 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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 SINGLE_VALUE_TYPE(switches::kExperimentalWallpaperUI) 762 SINGLE_VALUE_TYPE(switches::kExperimentalWallpaperUI)
763 }, 763 },
764 { 764 {
765 "enable-new-oobe", 765 "enable-new-oobe",
766 IDS_FLAGS_ENABLE_NEW_OOBE, 766 IDS_FLAGS_ENABLE_NEW_OOBE,
767 IDS_FLAGS_ENABLE_NEW_OOBE_DESCRIPTION, 767 IDS_FLAGS_ENABLE_NEW_OOBE_DESCRIPTION,
768 kOsCrOS, 768 kOsCrOS,
769 SINGLE_VALUE_TYPE(switches::kEnableNewOobe), 769 SINGLE_VALUE_TYPE(switches::kEnableNewOobe),
770 }, 770 },
771 #endif 771 #endif
772 {
773 "enable-speculative-resource-prefetching",
774 IDS_FLAGS_ENABLE_SPECULATIVE_RESOURCE_PREFETCHING_NAME,
775 IDS_FLAGS_ENABLE_SPECULATIVE_RESOURCE_PREFETCHING_DESCRIPTION,
776 kOsAll,
777 SINGLE_VALUE_TYPE(switches::kEnableSpeculativeResourcePrefetching),
778 },
772 }; 779 };
773 780
774 const Experiment* experiments = kExperiments; 781 const Experiment* experiments = kExperiments;
775 size_t num_experiments = arraysize(kExperiments); 782 size_t num_experiments = arraysize(kExperiments);
776 783
777 // Stores and encapsulates the little state that about:flags has. 784 // Stores and encapsulates the little state that about:flags has.
778 class FlagsState { 785 class FlagsState {
779 public: 786 public:
780 FlagsState() : needs_restart_(false) {} 787 FlagsState() : needs_restart_(false) {}
781 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 788 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 } 1204 }
1198 1205
1199 const Experiment* GetExperiments(size_t* count) { 1206 const Experiment* GetExperiments(size_t* count) {
1200 *count = num_experiments; 1207 *count = num_experiments;
1201 return experiments; 1208 return experiments;
1202 } 1209 }
1203 1210
1204 } // namespace testing 1211 } // namespace testing
1205 1212
1206 } // namespace about_flags 1213 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698