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

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

Issue 7210020: Added prerendering to omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More histograms/rebase Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 SINGLE_VALUE_TYPE("") 350 SINGLE_VALUE_TYPE("")
351 #endif 351 #endif
352 }, 352 },
353 { 353 {
354 "show-autofill-type-predictions", 354 "show-autofill-type-predictions",
355 IDS_FLAGS_SHOW_AUTOFILL_TYPE_PREDICTIONS_NAME, 355 IDS_FLAGS_SHOW_AUTOFILL_TYPE_PREDICTIONS_NAME,
356 IDS_FLAGS_SHOW_AUTOFILL_TYPE_PREDICTIONS_DESCRIPTION, 356 IDS_FLAGS_SHOW_AUTOFILL_TYPE_PREDICTIONS_DESCRIPTION,
357 kOsAll, 357 kOsAll,
358 SINGLE_VALUE_TYPE(switches::kShowAutofillTypePredictions) 358 SINGLE_VALUE_TYPE(switches::kShowAutofillTypePredictions)
359 }, 359 },
360 {
361 "prerender-from-omnibox",
362 IDS_FLAGS_PRERENDER_FROM_OMNIBOX_NAME,
363 IDS_FLAGS_PRERENDER_FROM_OMNIBOX_DESCRIPTION,
364 kOsAll,
365 SINGLE_VALUE_TYPE(switches::kPrerenderFromOmnibox)
366 },
360 }; 367 };
361 368
362 const Experiment* experiments = kExperiments; 369 const Experiment* experiments = kExperiments;
363 size_t num_experiments = arraysize(kExperiments); 370 size_t num_experiments = arraysize(kExperiments);
364 371
365 // Stores and encapsulates the little state that about:flags has. 372 // Stores and encapsulates the little state that about:flags has.
366 class FlagsState { 373 class FlagsState {
367 public: 374 public:
368 FlagsState() : needs_restart_(false) {} 375 FlagsState() : needs_restart_(false) {}
369 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 376 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 } 797 }
791 798
792 const Experiment* GetExperiments(size_t* count) { 799 const Experiment* GetExperiments(size_t* count) {
793 *count = num_experiments; 800 *count = num_experiments;
794 return experiments; 801 return experiments;
795 } 802 }
796 803
797 } // namespace testing 804 } // namespace testing
798 805
799 } // namespace about_flags 806 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698