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

Unified Diff: chrome/browser/extensions/webstore_startup_installer_browsertest.cc

Issue 14413004: Merge 195393 "Two fixes for the limited install from webstore flag." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1453/src/
Patch Set: Created 7 years, 8 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/browser/extensions/startup_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/webstore_startup_installer_browsertest.cc
===================================================================
--- chrome/browser/extensions/webstore_startup_installer_browsertest.cc (revision 195576)
+++ chrome/browser/extensions/webstore_startup_installer_browsertest.cc (working copy)
@@ -353,8 +353,6 @@
CommandLine* command_line = CommandLine::ForCurrentProcess();
command_line->AppendSwitchASCII(
switches::kLimitedInstallFromWebstore, "2");
- command_line->AppendSwitchASCII(
- switches::kAppsGalleryInstallAutoConfirmForTests, "accept");
helper.LimitedInstallFromWebstore(*command_line, browser()->profile(),
MessageLoop::QuitWhenIdleClosure());
MessageLoop::current()->Run();
@@ -362,17 +360,3 @@
EXPECT_TRUE(saw_install());
EXPECT_EQ(0, browser_open_count());
}
-
-IN_PROC_BROWSER_TEST_F(CommandLineWebstoreInstall, LimitedCancel) {
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- command_line->AppendSwitchASCII(
- switches::kLimitedInstallFromWebstore, "2");
- command_line->AppendSwitchASCII(
- switches::kAppsGalleryInstallAutoConfirmForTests, "cancel");
- extensions::StartupHelper helper;
- helper.LimitedInstallFromWebstore(*command_line, browser()->profile(),
- MessageLoop::QuitWhenIdleClosure());
- MessageLoop::current()->Run();
- EXPECT_FALSE(saw_install());
- EXPECT_EQ(0, browser_open_count());
-}
« no previous file with comments | « chrome/browser/extensions/startup_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698