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

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

Issue 2036193002: Allow overriding variation parameter via chrome://flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build deps #2 Created 4 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
« no previous file with comments | « no previous file | chrome/browser/about_flags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_ABOUT_FLAGS_H_ 5 #ifndef CHROME_BROWSER_ABOUT_FLAGS_H_
6 #define CHROME_BROWSER_ABOUT_FLAGS_H_ 6 #define CHROME_BROWSER_ABOUT_FLAGS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 28
29 namespace about_flags { 29 namespace about_flags {
30 30
31 // Reads the state from |flags_storage| and adds the command line flags 31 // Reads the state from |flags_storage| and adds the command line flags
32 // belonging to the active feature entries to |command_line|. 32 // belonging to the active feature entries to |command_line|.
33 void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage, 33 void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
34 base::CommandLine* command_line, 34 base::CommandLine* command_line,
35 flags_ui::SentinelsMode sentinels); 35 flags_ui::SentinelsMode sentinels);
36 36
37 // Registers variations parameter values stored in |flags_storage| (previously
38 // selected in about:flags).
39 void RegisterAllFeatureVariationParameters(
40 flags_ui::FlagsStorage* flags_storage);
41
37 // Compares a set of switches of the two provided command line objects and 42 // Compares a set of switches of the two provided command line objects and
38 // returns true if they are the same and false otherwise. 43 // returns true if they are the same and false otherwise.
39 // If |out_difference| is not NULL, it's filled with set_symmetric_difference 44 // If |out_difference| is not NULL, it's filled with set_symmetric_difference
40 // between sets. 45 // between sets.
41 bool AreSwitchesIdenticalToCurrentCommandLine( 46 bool AreSwitchesIdenticalToCurrentCommandLine(
42 const base::CommandLine& new_cmdline, 47 const base::CommandLine& new_cmdline,
43 const base::CommandLine& active_cmdline, 48 const base::CommandLine& active_cmdline,
44 std::set<base::CommandLine::StringType>* out_difference); 49 std::set<base::CommandLine::StringType>* out_difference);
45 50
46 // Gets the list of feature entries. Entries that are available for the current 51 // Gets the list of feature entries. Entries that are available for the current
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 94
90 // This value is reported as switch histogram ID if switch name has unknown 95 // This value is reported as switch histogram ID if switch name has unknown
91 // format. 96 // format.
92 extern const base::HistogramBase::Sample kBadSwitchFormatHistogramId; 97 extern const base::HistogramBase::Sample kBadSwitchFormatHistogramId;
93 98
94 } // namespace testing 99 } // namespace testing
95 100
96 } // namespace about_flags 101 } // namespace about_flags
97 102
98 #endif // CHROME_BROWSER_ABOUT_FLAGS_H_ 103 #endif // CHROME_BROWSER_ABOUT_FLAGS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/about_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698