From 3e5dd57d47cf3ad1c819401fcc9c751530858a12 Mon Sep 17 00:00:00 2001 From: "tommi@chromium.org" Date: Wed, 28 Mar 2012 06:58:33 +0000 Subject: Adding policy support to Chrome Frame's launcher so that additional parameters can be passed to Chrome via Group Policy. BUG=116783 TEST=See information in comment #5 of the issue. Review URL: https://chromiumcodereview.appspot.com/9836037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129384 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/chrome_frame_automation.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'chrome_frame/chrome_frame_automation.cc') diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc index b4d3023..88f5f9c 100644 --- a/chrome_frame/chrome_frame_automation.cc +++ b/chrome_frame/chrome_frame_automation.cc @@ -519,7 +519,13 @@ bool ProxyFactory::ReleaseAutomationServer(void* server_id, Vector::ContainerType::iterator it = std::find(proxies_.container().begin(), proxies_.container().end(), entry); - proxies_.container().erase(it); + if (it != proxies_.container().end()) { + proxies_.container().erase(it); + } else { + DLOG(ERROR) << "Proxy wasn't found. Proxy map is likely empty (size=" + << proxies_.container().size() << ")."; + } + lock_.Release(); } -- cgit v1.1