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

Unified Diff: chrome_frame/chrome_launcher_unittest.cc

Issue 8070019: Don't allow Chrome to go into background mode when launched by GCF. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: knitting Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_launcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_launcher_unittest.cc
diff --git a/chrome_frame/chrome_launcher_unittest.cc b/chrome_frame/chrome_launcher_unittest.cc
index 0f2db438f1cff21417fab1f134e1b596c5977670..61c96dcd862d576770b71720df64ad0c167f16f9 100644
--- a/chrome_frame/chrome_launcher_unittest.cc
+++ b/chrome_frame/chrome_launcher_unittest.cc
@@ -19,6 +19,7 @@ TEST(ChromeLauncher, IsValidCommandLine) {
CommandLine good(FilePath(L"dummy.exe"));
good.AppendSwitch(switches::kNoFirstRun); // in whitelist
+ good.AppendSwitch(switches::kDisableBackgroundMode); // in whitelist
good.AppendSwitchASCII(switches::kUserDataDir, "foo"); // in whitelist
EXPECT_TRUE(chrome_launcher::IsValidCommandLine(
@@ -55,6 +56,7 @@ TEST(ChromeLauncher, TrimWhiteSpace) {
TEST(ChromeLauncher, IsValidArgument) {
EXPECT_TRUE(chrome_launcher::IsValidArgument(L"--chrome-frame"));
+ EXPECT_TRUE(chrome_launcher::IsValidArgument(L"--disable-background-mode"));
EXPECT_FALSE(chrome_launcher::IsValidArgument(L"--invalid-arg"));
EXPECT_TRUE(chrome_launcher::IsValidArgument(L"--chrome-frame="));
« no previous file with comments | « chrome_frame/chrome_launcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698