summaryrefslogtreecommitdiffstats
path: root/chrome/common/switch_utils.h
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-22 09:37:21 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-22 09:37:21 +0000
commit5c08f22715e7a86971a9878175d897554a0515f7 (patch)
treeba06ee8246d4ba966d4c4a4ed69a273bc186941d /chrome/common/switch_utils.h
parent1b3e5390c3b3ad2e4ddc3dd6b3412e89332d07cd (diff)
downloadchromium_src-5c08f22715e7a86971a9878175d897554a0515f7.zip
chromium_src-5c08f22715e7a86971a9878175d897554a0515f7.tar.gz
chromium_src-5c08f22715e7a86971a9878175d897554a0515f7.tar.bz2
Remove one-time flags when restarting after update.
BUG=53407 TEST=SwitchUtilsTest.AddRemoveSwitches Review URL: http://codereview.chromium.org/3307024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/switch_utils.h')
-rw-r--r--chrome/common/switch_utils.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/common/switch_utils.h b/chrome/common/switch_utils.h
new file mode 100644
index 0000000..3c9088b
--- /dev/null
+++ b/chrome/common/switch_utils.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_SWITCH_UTILS_H_
+#define CHROME_COMMON_SWITCH_UTILS_H_
+#pragma once
+
+#include <map>
+#include <string>
+
+#include "base/command_line.h"
+
+namespace switches {
+
+// Remove the keys that we shouldn't pass through during restart.
+void RemoveSwitchesForAutostart(
+ std::map<std::string, CommandLine::StringType>* switches);
+
+} // namespace switches
+
+#endif // CHROME_COMMON_SWITCH_UTILS_H_