summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_management_api_browsertest.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-08 08:25:04 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-08 08:25:04 +0000
commitd95c1050618dbf988a43c33bdd3011ccbe1419e5 (patch)
tree517d1b798053a2ab5a47e1105e0e9c2fb39988b5 /chrome/browser/extensions/extension_management_api_browsertest.cc
parent93d973a3dc873112e5df401a1826f1235dff66a6 (diff)
downloadchromium_src-d95c1050618dbf988a43c33bdd3011ccbe1419e5.zip
chromium_src-d95c1050618dbf988a43c33bdd3011ccbe1419e5.tar.gz
chromium_src-d95c1050618dbf988a43c33bdd3011ccbe1419e5.tar.bz2
Revert 116835 - Add a commandline flag for auto confirm/deny of webstore install confirm dialog
This failed mac browser_tests PlatformAppBrowserTest.OpenAppInShellContainer: http://build.chromium.org/p/chromium/builders/Mac%2010.6%20Tests%20%28dbg%29%282%29/builds/16631/steps/browser_tests/logs/stdio The webstore testing folks asked me for this to use in their webdriver tests. BUG=none TEST=Run chrome with --apps-gallery-install-auto-confirm-for-tests=accept and notice that all installs from the webstore immediately complete without the confirmation prompt. Then run with =cancel instead and notice that all installs fail to complete. Review URL: http://codereview.chromium.org/9108032 TBR=asargent@chromium.org Review URL: http://codereview.chromium.org/9145002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_management_api_browsertest.cc')
-rw-r--r--chrome/browser/extensions/extension_management_api_browsertest.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/chrome/browser/extensions/extension_management_api_browsertest.cc b/chrome/browser/extensions/extension_management_api_browsertest.cc
index 9966f01..c226902 100644
--- a/chrome/browser/extensions/extension_management_api_browsertest.cc
+++ b/chrome/browser/extensions/extension_management_api_browsertest.cc
@@ -1,8 +1,7 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
-#include "base/command_line.h"
#include "base/stringprintf.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/extensions/extension_function_test_utils.h"
@@ -14,7 +13,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/common/chrome_notification_types.h"
-#include "chrome/common/chrome_switches.h"
namespace keys = extension_management_api_constants;
namespace util = extension_function_test_utils;
@@ -123,12 +121,10 @@ IN_PROC_BROWSER_TEST_F(ExtensionManagementApiEscalationTest,
ReEnable(false, keys::kGestureNeededForEscalationError);
// Expect an error that user cancelled the dialog.
- CommandLine::ForCurrentProcess()->AppendSwitchASCII(
- switches::kAppsGalleryInstallAutoConfirmForTests, "cancel");
+ SetExtensionInstallDialogAutoConfirmForTests(false);
ReEnable(true, keys::kUserDidNotReEnableError);
// This should succeed when user accepts dialog.
- CommandLine::ForCurrentProcess()->AppendSwitchASCII(
- switches::kAppsGalleryInstallAutoConfirmForTests, "accept");
+ SetExtensionInstallDialogAutoConfirmForTests(true);
ReEnable(true, "");
}