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

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

Issue 819133004: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 12 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 | « chrome/app_shim/win/app_shim_main.cc ('k') | 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 base::CommandLine* command_line, 114 base::CommandLine* command_line,
115 SentinelsMode sentinels); 115 SentinelsMode sentinels);
116 116
117 // Compares a set of switches of the two provided command line objects and 117 // Compares a set of switches of the two provided command line objects and
118 // returns true if they are the same and false otherwise. 118 // returns true if they are the same and false otherwise.
119 // If |out_difference| is not NULL, it's filled with set_symmetric_difference 119 // If |out_difference| is not NULL, it's filled with set_symmetric_difference
120 // between sets. 120 // between sets.
121 bool AreSwitchesIdenticalToCurrentCommandLine( 121 bool AreSwitchesIdenticalToCurrentCommandLine(
122 const base::CommandLine& new_cmdline, 122 const base::CommandLine& new_cmdline,
123 const base::CommandLine& active_cmdline, 123 const base::CommandLine& active_cmdline,
124 std::set<CommandLine::StringType>* out_difference); 124 std::set<base::CommandLine::StringType>* out_difference);
125 125
126 // Differentiate between generic flags available on a per session base and flags 126 // Differentiate between generic flags available on a per session base and flags
127 // that influence the whole machine and can be said by the admin only. This flag 127 // that influence the whole machine and can be said by the admin only. This flag
128 // is relevant for ChromeOS for now only and dictates whether entries marked 128 // is relevant for ChromeOS for now only and dictates whether entries marked
129 // with the |kOsCrOSOwnerOnly| label should be enabled in the UI or not. 129 // with the |kOsCrOSOwnerOnly| label should be enabled in the UI or not.
130 enum FlagAccess { kGeneralAccessFlagsOnly, kOwnerAccessToFlags }; 130 enum FlagAccess { kGeneralAccessFlagsOnly, kOwnerAccessToFlags };
131 131
132 // Get the list of experiments. Experiments that are available on the current 132 // Get the list of experiments. Experiments that are available on the current
133 // platform are appended to |supported_experiments|; all other experiments are 133 // platform are appended to |supported_experiments|; all other experiments are
134 // appended to |unsupported_experiments|. 134 // appended to |unsupported_experiments|.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 // This value is reported as switch histogram ID if switch name has unknown 191 // This value is reported as switch histogram ID if switch name has unknown
192 // format. 192 // format.
193 extern const base::HistogramBase::Sample kBadSwitchFormatHistogramId; 193 extern const base::HistogramBase::Sample kBadSwitchFormatHistogramId;
194 194
195 } // namespace testing 195 } // namespace testing
196 196
197 } // namespace about_flags 197 } // namespace about_flags
198 198
199 #endif // CHROME_BROWSER_ABOUT_FLAGS_H_ 199 #endif // CHROME_BROWSER_ABOUT_FLAGS_H_
OLDNEW
« no previous file with comments | « chrome/app_shim/win/app_shim_main.cc ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698