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

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: Fixing enum name. 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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 SINGLE_VALUE_TYPE(switches::kEnableNewOobe), 781 SINGLE_VALUE_TYPE(switches::kEnableNewOobe),
782 }, 782 },
783 #endif 783 #endif
784 { 784 {
785 "enable-views-textfield", 785 "enable-views-textfield",
786 IDS_FLAGS_ENABLE_VIEWS_TEXTFIELD_NAME, 786 IDS_FLAGS_ENABLE_VIEWS_TEXTFIELD_NAME,
787 IDS_FLAGS_ENABLE_VIEWS_TEXTFIELD_DESCRIPTION, 787 IDS_FLAGS_ENABLE_VIEWS_TEXTFIELD_DESCRIPTION,
788 kOsWin, 788 kOsWin,
789 SINGLE_VALUE_TYPE(switches::kEnableViewsTextfield), 789 SINGLE_VALUE_TYPE(switches::kEnableViewsTextfield),
790 }, 790 },
791 {
792 "enable-speculative-resource-prefetching",
793 IDS_FLAGS_ENABLE_SPECULATIVE_RESOURCE_PREFETCHING_NAME,
794 IDS_FLAGS_ENABLE_SPECULATIVE_RESOURCE_PREFETCHING_DESCRIPTION,
795 kOsAll,
796 SINGLE_VALUE_TYPE(switches::kEnableSpeculativeResourcePrefetching),
797 },
791 }; 798 };
792 799
793 const Experiment* experiments = kExperiments; 800 const Experiment* experiments = kExperiments;
794 size_t num_experiments = arraysize(kExperiments); 801 size_t num_experiments = arraysize(kExperiments);
795 802
796 // Stores and encapsulates the little state that about:flags has. 803 // Stores and encapsulates the little state that about:flags has.
797 class FlagsState { 804 class FlagsState {
798 public: 805 public:
799 FlagsState() : needs_restart_(false) {} 806 FlagsState() : needs_restart_(false) {}
800 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 807 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 } 1223 }
1217 1224
1218 const Experiment* GetExperiments(size_t* count) { 1225 const Experiment* GetExperiments(size_t* count) {
1219 *count = num_experiments; 1226 *count = num_experiments;
1220 return experiments; 1227 return experiments;
1221 } 1228 }
1222 1229
1223 } // namespace testing 1230 } // namespace testing
1224 1231
1225 } // namespace about_flags 1232 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698