Searched refs:switch_name (Results 1 - 17 of 17) sorted by relevance

/external/chromium_org/chrome/browser/prefs/
H A Dcommand_line_pref_store.h30 const char* switch_name; member in struct:CommandLinePrefStore::StringSwitchToPreferenceMapEntry
35 const char* switch_name; member in struct:CommandLinePrefStore::PathSwitchToPreferenceMapEntry
40 const char* switch_name; member in struct:CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry
47 const char* switch_name; member in struct:CommandLinePrefStore::BooleanSwitchToPreferenceMapEntry
H A Dcommand_line_pref_store.cc106 if (command_line_->HasSwitch(string_switch_map_[i].switch_name)) {
109 string_switch_map_[i].switch_name)));
114 if (command_line_->HasSwitch(path_switch_map_[i].switch_name)) {
117 path_switch_map_[i].switch_name).value()));
122 if (command_line_->HasSwitch(integer_switch_map_[i].switch_name)) {
124 integer_switch_map_[i].switch_name);
128 << integer_switch_map_[i].switch_name
138 if (command_line_->HasSwitch(boolean_switch_map_[i].switch_name)) {
/external/chromium_org/base/test/
H A Dtest_timeouts.cc40 // 3) the numerical value given by switch_name on the command line multiplied
42 void InitializeTimeout(const char* switch_name, int min_value, int* value) { argument
44 if (CommandLine::ForCurrentProcess()->HasSwitch(switch_name)) {
46 CommandLine::ForCurrentProcess()->GetSwitchValueASCII(switch_name));
58 // 3) the numerical value given by switch_name on the command line multiplied
60 void InitializeTimeout(const char* switch_name, int* value) { argument
61 InitializeTimeout(switch_name, 0, value);
/external/chromium_org/extensions/common/
H A Dfeature_switch.h55 // |switch_name| can be NULL, in which case the feature is controlled solely
57 FeatureSwitch(const char* switch_name,
60 const char* switch_name,
71 const char* switch_name,
H A Dfeature_switch.cc119 FeatureSwitch::FeatureSwitch(const char* switch_name, argument
121 Init(CommandLine::ForCurrentProcess(), switch_name, default_value); local
125 const char* switch_name,
127 Init(command_line, switch_name, default_value);
131 const char* switch_name,
134 switch_name_ = switch_name;
124 FeatureSwitch(const CommandLine* command_line, const char* switch_name, DefaultValue default_value) argument
130 Init(const CommandLine* command_line, const char* switch_name, DefaultValue default_value) argument
/external/chromium_org/chrome/browser/chromeos/login/enrollment/
H A Dauto_enrollment_controller.cc24 // Returns the int value of the |switch_name| argument, clamped to the [0, 62]
26 int GetSanitizedArg(const std::string& switch_name) { argument
28 if (!command_line->HasSwitch(switch_name))
30 std::string value = command_line->GetSwitchValueASCII(switch_name);
33 LOG(ERROR) << "Switch \"" << switch_name << "\" is not a valid int. "
38 LOG(ERROR) << "Switch \"" << switch_name << "\" can't be negative. "
43 LOG(ERROR) << "Switch \"" << switch_name << "\" can't be greater than "
/external/chromium_org/chromecast/shell/browser/
H A Dcast_browser_main_parts.cc33 const char* const switch_name; member in struct:chromecast::shell::__anon6076::DefaultCommandLineSwitch
47 while (g_default_switches[i].switch_name != NULL) {
49 std::string(g_default_switches[i].switch_name),
/external/chromium_org/sync/tools/testserver/
H A Drun_sync_testserver.cc55 // Gets a port value from the switch with name |switch_name| and writes it to
57 static bool GetPortFromSwitch(const std::string& switch_name, uint16* port) { argument
61 if (command_line->HasSwitch(switch_name)) {
62 std::string port_str = command_line->GetSwitchValueASCII(switch_name);
/external/chromium_org/chrome/browser/
H A Dprocess_singleton_browsertest.cc79 const std::string& switch_name = i->first; local
80 if (switch_name == switches::kUserDataDir ||
81 switch_name == switches::kForceFirstRun ||
82 switch_name == switches::kNoFirstRun)
85 command_line.AppendSwitchNative(switch_name, i->second);
H A Dabout_flags.h175 base::HistogramBase::Sample GetSwitchUMAId(const std::string& switch_name);
H A Dupgrade_detector_impl.cc220 std::string switch_name; local
223 switch_name = switches::kSimulateOutdatedNoAU;
225 switch_name = switches::kSimulateOutdated;
227 std::string build_date = command_line.GetSwitchValueASCII(switch_name);
H A Dabout_flags_unittest.cc679 void SetSwitchToHistogramIdMapping(const std::string& switch_name, argument
683 out_map->insert(std::make_pair(switch_name, switch_histogram_id));
686 << "Duplicate switch '" << switch_name
693 std::string GetHistogramEnumEntryText(const std::string& switch_name, argument
696 "<int value=\"%d\" label=\"%s\"/>", value, switch_name.c_str());
717 // Build reverse map {switch_name => id} from login_custom_flags.
H A Dabout_flags.cc2292 base::HistogramBase::Sample GetSwitchUMAId(const std::string& switch_name) { argument
2294 metrics::HashMetricName(switch_name));
2306 std::string switch_name(it->substr(2));
2309 const size_t value_pos = switch_name.find('=');
2311 switch_name.resize(value_pos);
2313 uma_id = GetSwitchUMAId(switch_name);
2336 const std::string& switch_name,
2340 (*name_to_switch_map)[key] = std::make_pair(switch_name, switch_value);
2335 SetFlagToSwitchMapping(const std::string& key, const std::string& switch_name, const std::string& switch_value, NameToSwitchAndValueMap* name_to_switch_map) argument
H A Dio_thread.cc294 const std::string& switch_name) {
296 if (!base::StringToInt(command_line.GetSwitchValueASCII(switch_name),
293 GetSwitchValueAsInt(const CommandLine& command_line, const std::string& switch_name) argument
/external/chromium_org/base/test/launcher/
H A Dunit_test_launcher.cc447 bool GetSwitchValueAsInt(const std::string& switch_name, int* result) { argument
448 if (!CommandLine::ForCurrentProcess()->HasSwitch(switch_name))
452 CommandLine::ForCurrentProcess()->GetSwitchValueASCII(switch_name);
454 LOG(ERROR) << "Invalid value for " << switch_name << ": " << switch_value;
/external/chromium_org/chrome/test/chromedriver/
H A Dcapabilities.cc267 std::string switch_name; local
268 if (!switches->GetString(i, &switch_name)) {
272 capabilities->exclude_switches.insert(switch_name);
/external/chromium_org/chrome/installer/util/
H A Dinstaller_state.cc164 // presence or absence of |switch_name| in that product's uninstall
168 const char* switch_name; member in struct:installer::__anon5775
186 conditional_additions[i].switch_name) ==

Completed in 1829 milliseconds