From 28fa6146eb31f6936a0db8bcfd5e292f3d62b0ca Mon Sep 17 00:00:00 2001 From: "mad@google.com" Date: Wed, 8 Dec 2010 13:55:42 +0000 Subject: Small fix to properly return the appropriate type. BUG=None TEST=None Review URL: http://codereview.chromium.org/5588008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68595 0039d316-1c4b-4281-b951-d872f2087c98 --- ceee/ie/plugin/bho/executor.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ceee') diff --git a/ceee/ie/plugin/bho/executor.cc b/ceee/ie/plugin/bho/executor.cc index 56c8e97..eb80047 100644 --- a/ceee/ie/plugin/bho/executor.cc +++ b/ceee/ie/plugin/bho/executor.cc @@ -243,7 +243,12 @@ STDMETHODIMP AsyncTabCall::Begin_GetTabInfo() { // We do all the work on Finish_GetTabInfo, so schedule only a noop // invocation. Alternatively we could schedule NULL here, though that // would make it more difficult to distinguish error cases. - return ScheduleTask(NewRunnableFunction(Noop)); + if (!ScheduleTask(NewRunnableFunction(Noop))) { + LOG(ERROR) << "Failed to schedule Noop task"; + return E_OUTOFMEMORY; + } + + return S_OK; } STDMETHODIMP AsyncTabCall::Finish_GetTabInfo(CeeeTabInfo *tab_info) { -- cgit v1.1