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

Unified Diff: chrome/browser/chrome_plugin_browsertest.cc

Issue 1862513003: Remove NPAPI from browser and utility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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/chrome_content_browser_client.cc ('k') | chrome/browser/download/download_browsertest.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 1dbe769510bee277347936b37c28104741de831d..a119fb03a8955dd26b62782a0869660d95ca33bb 100644
--- a/chrome/browser/chrome_plugin_browsertest.cc
+++ b/chrome/browser/chrome_plugin_browsertest.cc
@@ -171,10 +171,8 @@ class ChromePluginTest : public InProcessBrowserTest {
static void CrashFlashInternal(const base::Closure& quit_task) {
bool found = false;
for (content::BrowserChildProcessHostIterator iter; !iter.Done(); ++iter) {
- if (iter.GetData().process_type != content::PROCESS_TYPE_PLUGIN &&
- iter.GetData().process_type != content::PROCESS_TYPE_PPAPI_PLUGIN) {
+ if (iter.GetData().process_type != content::PROCESS_TYPE_PPAPI_PLUGIN)
continue;
- }
base::Process process = base::Process::DeprecatedGetProcessFromHandle(
iter.GetData().handle);
process.Terminate(0, true);
@@ -194,10 +192,8 @@ class ChromePluginTest : public InProcessBrowserTest {
static void CountPluginProcesses(int* count, const base::Closure& quit_task) {
for (content::BrowserChildProcessHostIterator iter; !iter.Done(); ++iter) {
- if (iter.GetData().process_type == content::PROCESS_TYPE_PLUGIN ||
- iter.GetData().process_type == content::PROCESS_TYPE_PPAPI_PLUGIN) {
+ if (iter.GetData().process_type == content::PROCESS_TYPE_PPAPI_PLUGIN)
(*count)++;
- }
}
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, quit_task);
}
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698