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

Unified Diff: chrome/browser/policy/policy_browsertest.cc

Issue 964583002: Remove showModalDialog (Chrome side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 10 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/policy/configuration_policy_handler_list_factory.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index 34772866a1532922ab3b4a2878271aa6fecc7757..2fb6530e04a942910692cba2ebe2c73bcd4041d4 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -3602,31 +3602,6 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, NativeMessagingWhitelist) {
prefs, "other.host.name"));
}
-IN_PROC_BROWSER_TEST_F(PolicyTest,
- EnableDeprecatedWebPlatformFeatures_ShowModalDialog) {
- base::ListValue enabled_features;
- enabled_features.Append(new base::StringValue(
- "ShowModalDialog_EffectiveUntil20150430"));
- PolicyMap policies;
- policies.Set(key::kEnableDeprecatedWebPlatformFeatures,
- POLICY_LEVEL_MANDATORY,
- POLICY_SCOPE_USER,
- enabled_features.DeepCopy(),
- NULL);
- UpdateProviderPolicy(policies);
-
- // Policy only takes effect on new browsers, not existing browsers, so create
- // a new browser.
- Browser* browser2 = CreateBrowser(browser()->profile());
- ui_test_utils::NavigateToURL(browser2, GURL(url::kAboutBlankURL));
- bool result = false;
- EXPECT_TRUE(content::ExecuteScriptAndExtractBool(
- browser2->tab_strip_model()->GetActiveWebContents(),
- "domAutomationController.send(window.showModalDialog !== undefined);",
- &result));
- EXPECT_TRUE(result);
-}
-
#endif // !defined(CHROME_OS)
} // namespace policy
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler_list_factory.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698