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

Unified Diff: chrome/common/chrome_process_filter.cc

Issue 54003: Replace chrome_process_filter with chrome_process_util. (Closed)
Patch Set: error handling Created 11 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/common/chrome_process_filter.h ('k') | chrome/common/common.vcproj » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_process_filter.cc
diff --git a/chrome/common/chrome_process_filter.cc b/chrome/common/chrome_process_filter.cc
deleted file mode 100644
index 2b12d2d00f07dcf8f3199d738b838a6ec3b7d0d6..0000000000000000000000000000000000000000
--- a/chrome/common/chrome_process_filter.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2006-2008 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 <windows.h>
-
-#include "chrome/common/chrome_process_filter.h"
-
-#include "base/path_service.h"
-#include "chrome/common/chrome_constants.h"
-#include "chrome/common/chrome_paths.h"
-
-BrowserProcessFilter::BrowserProcessFilter(const std::wstring user_data_dir)
- : browser_process_id_(0),
- user_data_dir_(user_data_dir) {
- // Find the message window (if any) for the current user data directory,
- // and get its process ID. We'll only count browser processes that either
- // have the same process ID or have that process ID as their parent.
-
- if (user_data_dir_.length() == 0)
- PathService::Get(chrome::DIR_USER_DATA, &user_data_dir_);
-
-
- HWND message_window = FindWindowEx(HWND_MESSAGE, NULL,
- chrome::kMessageWindowClass,
- user_data_dir_.c_str());
- if (message_window)
- GetWindowThreadProcessId(message_window, &browser_process_id_);
-}
-
-bool BrowserProcessFilter::Includes(base::ProcessId pid,
- base::ProcessId parent_pid) const {
- return browser_process_id_ && (browser_process_id_ == pid ||
- browser_process_id_ == parent_pid);
-}
« no previous file with comments | « chrome/common/chrome_process_filter.h ('k') | chrome/common/common.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698