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

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

Issue 6990015: Preload Instant search when omnibox is focused. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 kOsAll, 318 kOsAll,
319 SINGLE_VALUE_TYPE(switches::kMultiProfiles) 319 SINGLE_VALUE_TYPE(switches::kMultiProfiles)
320 }, 320 },
321 { 321 {
322 "restrict-instant-to-search", 322 "restrict-instant-to-search",
323 IDS_FLAGS_RESTRICT_INSTANT_TO_SEARCH_NAME, 323 IDS_FLAGS_RESTRICT_INSTANT_TO_SEARCH_NAME,
324 IDS_FLAGS_RESTRICT_INSTANT_TO_SEARCH_DESCRIPTION, 324 IDS_FLAGS_RESTRICT_INSTANT_TO_SEARCH_DESCRIPTION,
325 kOsAll, 325 kOsAll,
326 SINGLE_VALUE_TYPE(switches::kRestrictInstantToSearch) 326 SINGLE_VALUE_TYPE(switches::kRestrictInstantToSearch)
327 }, 327 },
328 {
329 "preload-instant-search",
330 IDS_FLAGS_PRELOAD_INSTANT_SEARCH_NAME,
331 IDS_FLAGS_PRELOAD_INSTANT_SEARCH_DESCRIPTION,
332 kOsAll,
333 SINGLE_VALUE_TYPE(switches::kPreloadInstantSearch)
334 },
328 }; 335 };
329 336
330 const Experiment* experiments = kExperiments; 337 const Experiment* experiments = kExperiments;
331 size_t num_experiments = arraysize(kExperiments); 338 size_t num_experiments = arraysize(kExperiments);
332 339
333 // Stores and encapsulates the little state that about:flags has. 340 // Stores and encapsulates the little state that about:flags has.
334 class FlagsState { 341 class FlagsState {
335 public: 342 public:
336 FlagsState() : needs_restart_(false) {} 343 FlagsState() : needs_restart_(false) {}
337 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 344 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 } 754 }
748 755
749 const Experiment* GetExperiments(size_t* count) { 756 const Experiment* GetExperiments(size_t* count) {
750 *count = num_experiments; 757 *count = num_experiments;
751 return experiments; 758 return experiments;
752 } 759 }
753 760
754 } // namespace testing 761 } // namespace testing
755 762
756 } // namespace about_flags 763 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698