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

Unified Diff: chrome/browser/chrome_plugin_browsertest.cc

Issue 2518493002: Remove obsolete plugin state handling code. (Closed)
Patch Set: Removed unusued function. Created 4 years, 1 month 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 | « no previous file | chrome/browser/pdf/pdf_extension_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_plugin_browsertest.cc
diff --git a/chrome/browser/chrome_plugin_browsertest.cc b/chrome/browser/chrome_plugin_browsertest.cc
index a119fb03a8955dd26b62782a0869660d95ca33bb..95f1bda61ff16dd33884a9623d638477d920b360 100644
--- a/chrome/browser/chrome_plugin_browsertest.cc
+++ b/chrome/browser/chrome_plugin_browsertest.cc
@@ -137,24 +137,6 @@ class ChromePluginTest : public InProcessBrowserTest {
return plugins;
}
- static void EnableFlash(bool enable, Profile* profile) {
- std::vector<base::FilePath> paths;
- GetFlashPath(&paths);
- ASSERT_FALSE(paths.empty());
-
- PluginPrefs* plugin_prefs = PluginPrefs::GetForProfile(profile).get();
- scoped_refptr<content::MessageLoopRunner> runner =
- new content::MessageLoopRunner;
- scoped_refptr<CallbackBarrier> callback_barrier(
- new CallbackBarrier(runner->QuitClosure()));
- for (std::vector<base::FilePath>::iterator iter = paths.begin();
- iter != paths.end(); ++iter) {
- plugin_prefs->EnablePlugin(enable, *iter,
- callback_barrier->CreateCallback());
- }
- runner->Run();
- }
-
static void EnsureFlashProcessCount(int expected) {
int actual = 0;
scoped_refptr<content::MessageLoopRunner> runner =
@@ -232,18 +214,6 @@ IN_PROC_BROWSER_TEST_F(ChromePluginTest, DISABLED_Flash) {
ASSERT_NO_FATAL_FAILURE(LoadAndWait(browser(), url, true));
EnsureFlashProcessCount(1);
-
- // Now try disabling it.
- EnableFlash(false, profile);
- CrashFlash();
-
- ASSERT_NO_FATAL_FAILURE(LoadAndWait(browser(), url, false));
- EnsureFlashProcessCount(0);
-
- // Now enable it again.
- EnableFlash(true, profile);
- ASSERT_NO_FATAL_FAILURE(LoadAndWait(browser(), url, true));
- EnsureFlashProcessCount(1);
}
#if defined(OFFICIAL_BUILD)
« no previous file with comments | « no previous file | chrome/browser/pdf/pdf_extension_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698