summaryrefslogtreecommitdiffstats
path: root/ceee
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-04 18:58:22 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-04 18:58:22 +0000
commit59d32b8de2b0df29d5e2b1d47b905d9c9f98c147 (patch)
tree585735a8a94e273829a32c61a3201fc25e6bafe2 /ceee
parent7cacc379d0c70d015b84f996bd368728e1183ae2 (diff)
downloadchromium_src-59d32b8de2b0df29d5e2b1d47b905d9c9f98c147.zip
chromium_src-59d32b8de2b0df29d5e2b1d47b905d9c9f98c147.tar.gz
chromium_src-59d32b8de2b0df29d5e2b1d47b905d9c9f98c147.tar.bz2
Revert 68290 - Restored missing BrokerRpcClient::Connect.
Fixed leaking of BrokerRpcClient. BUG=65392 TEST=none Review URL: http://codereview.chromium.org/5610004 TBR=vitalybuka@chromium.org Review URL: http://codereview.chromium.org/5533007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68293 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ceee')
-rw-r--r--ceee/ie/plugin/bho/cookie_accountant.h8
-rw-r--r--ceee/ie/plugin/bho/executor.cc14
-rw-r--r--ceee/ie/plugin/bho/executor.h3
-rw-r--r--ceee/ie/plugin/bho/webrequest_notifier.cc5
-rw-r--r--ceee/ie/plugin/bho/webrequest_notifier.h3
5 files changed, 5 insertions, 28 deletions
diff --git a/ceee/ie/plugin/bho/cookie_accountant.h b/ceee/ie/plugin/bho/cookie_accountant.h
index 8e7423b..46efd20 100644
--- a/ceee/ie/plugin/bho/cookie_accountant.h
+++ b/ceee/ie/plugin/bho/cookie_accountant.h
@@ -54,11 +54,8 @@ class CookieAccountant {
// queue the events sent to the broker. They don't need to be sent to the BHO
// because they don't need tab_id anyway.
CookieAccountant()
- : broker_rpc_client_(true),
- cookie_events_funnel_(&broker_rpc_client_),
+ : cookie_events_funnel_(new BrokerRpcClient(true)),
patching_wininet_functions_(false) {
- HRESULT hr = broker_rpc_client_.Connect(true);
- DCHECK(SUCCEEDED(hr));
}
virtual ~CookieAccountant();
@@ -113,9 +110,6 @@ class CookieAccountant {
// Sets the cookie store ID for a script cookie event.
void SetScriptCookieStoreId(cookie_api::CookieInfo* cookie);
- // Broker RPC client.
- BrokerRpcClient broker_rpc_client_;
-
// The funnel for sending cookie events to the broker.
CookieEventsFunnel cookie_events_funnel_;
diff --git a/ceee/ie/plugin/bho/executor.cc b/ceee/ie/plugin/bho/executor.cc
index 56c8e97..9e2dc60 100644
--- a/ceee/ie/plugin/bho/executor.cc
+++ b/ceee/ie/plugin/bho/executor.cc
@@ -370,11 +370,7 @@ HRESULT AsyncTabCall::Signal() {
return hr;
}
-CeeeExecutor::CeeeExecutor()
- : hwnd_(NULL),
- // Don't restart on broker crash. It won't work because executor was
- // already registered in dead broker.
- broker_rpc_client_(false) {
+CeeeExecutor::CeeeExecutor() : hwnd_(NULL) {
}
CeeeExecutor::~CeeeExecutor() {
@@ -430,13 +426,9 @@ HRESULT CeeeExecutor::Initialize(CeeeWindowHandle hwnd) {
// Infobar. In any case, the construction below should have a reference to
// a BHO and its EventSender so we don't create Infobars before the tab_id
// is ready.
- if (window_utils::GetTopLevelParent(hwnd_) != hwnd_) {
- hr = broker_rpc_client_.Connect(true);
- if (FAILED(hr))
- return hr;
+ if (window_utils::GetTopLevelParent(hwnd_) != hwnd_)
infobar_manager_.reset(
- new infobar_api::InfobarManager(hwnd_, &broker_rpc_client_));
- }
+ new infobar_api::InfobarManager(hwnd_, new BrokerRpcClient(false)));
return S_OK;
}
diff --git a/ceee/ie/plugin/bho/executor.h b/ceee/ie/plugin/bho/executor.h
index 63ec87a..7df38fe 100644
--- a/ceee/ie/plugin/bho/executor.h
+++ b/ceee/ie/plugin/bho/executor.h
@@ -272,9 +272,6 @@ class ATL_NO_VTABLE CeeeExecutor
// Mainly for unit testing purposes.
void set_cookie_store_is_registered(bool is_registered);
- // Broker RPC client.
- BrokerRpcClient broker_rpc_client_;
-
// Instance of InfobarManager for the tab associated with the thread to which
// the executor is attached.
scoped_ptr<infobar_api::InfobarManager> infobar_manager_;
diff --git a/ceee/ie/plugin/bho/webrequest_notifier.cc b/ceee/ie/plugin/bho/webrequest_notifier.cc
index 5f65a8b..609dc45 100644
--- a/ceee/ie/plugin/bho/webrequest_notifier.cc
+++ b/ceee/ie/plugin/bho/webrequest_notifier.cc
@@ -32,10 +32,7 @@ WebRequestNotifier::WebRequestNotifier()
: internet_status_callback_stub_(NULL),
start_count_(0),
initialize_state_(NOT_INITIALIZED),
- broker_rpc_client_(true),
- webrequest_events_funnel_(&broker_rpc_client_) {
- HRESULT hr = broker_rpc_client_.Connect(true);
- DCHECK(SUCCEEDED(hr));
+ webrequest_events_funnel_(new BrokerRpcClient(true)) {
}
WebRequestNotifier::~WebRequestNotifier() {
diff --git a/ceee/ie/plugin/bho/webrequest_notifier.h b/ceee/ie/plugin/bho/webrequest_notifier.h
index 0676bf65..2529c42 100644
--- a/ceee/ie/plugin/bho/webrequest_notifier.h
+++ b/ceee/ie/plugin/bho/webrequest_notifier.h
@@ -400,9 +400,6 @@ class WebRequestNotifier {
app::win::IATPatchFunction http_send_request_w_patch_;
app::win::IATPatchFunction internet_read_file_patch_;
- // Broker RPC client.
- BrokerRpcClient broker_rpc_client_;
-
// The funnel for sending webRequest events to the broker.
WebRequestEventsFunnel webrequest_events_funnel_;