This source file includes following definitions.
- RemoveSwitchesForAutostart
#include "chrome/common/switch_utils.h"
#include "base/basictypes.h"
#include "chrome/common/chrome_switches.h"
namespace switches {
const char* const kSwitchesToRemoveOnAutorestart[] = {
switches::kApp,
switches::kAppId,
switches::kForceFirstRun,
switches::kMakeDefaultBrowser,
switches::kNoStartupWindow,
switches::kRestoreLastSession,
switches::kShowAppList,
};
void RemoveSwitchesForAutostart(
std::map<std::string, CommandLine::StringType>* switch_list) {
for (size_t i = 0; i < arraysize(kSwitchesToRemoveOnAutorestart); ++i)
switch_list->erase(kSwitchesToRemoveOnAutorestart[i]);
}
}