summaryrefslogtreecommitdiffstats
path: root/chrome_frame/custom_sync_call_context.h
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 02:49:18 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 02:49:18 +0000
commitef8561def41e78e9a56939246d3331703ab93c0d (patch)
tree12d14cefca2d95fef63275d97b29f92bbcbcb277 /chrome_frame/custom_sync_call_context.h
parent4751c74ecc02d7baa5a56fafd5a4e29a779d168a (diff)
downloadchromium_src-ef8561def41e78e9a56939246d3331703ab93c0d.zip
chromium_src-ef8561def41e78e9a56939246d3331703ab93c0d.tar.gz
chromium_src-ef8561def41e78e9a56939246d3331703ab93c0d.tar.bz2
Fix the ChromeFrame MockCreateTabOk test by returning the launch result from the CreateExternalTabComplete helper
and passing the same to the InitializeComplete function which eventually gets passed down to the mock delegate which expects a failure. Bug=44245 TBR=stoyan Review URL: http://codereview.chromium.org/2114009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47617 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/custom_sync_call_context.h')
-rw-r--r--chrome_frame/custom_sync_call_context.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome_frame/custom_sync_call_context.h b/chrome_frame/custom_sync_call_context.h
index c9242d6..28812ef 100644
--- a/chrome_frame/custom_sync_call_context.h
+++ b/chrome_frame/custom_sync_call_context.h
@@ -90,12 +90,14 @@ class CreateExternalTabContext
}
void Completed(HWND chrome_window, HWND tab_window, int tab_handle) {
- client_->CreateExternalTabComplete(chrome_window, tab_window, tab_handle);
+ AutomationLaunchResult launch_result =
+ client_->CreateExternalTabComplete(chrome_window, tab_window,
+ tab_handle);
client_->PostTask(FROM_HERE,
NewRunnableMethod(
client_.get(),
&ChromeFrameAutomationClient::InitializeComplete,
- AUTOMATION_SUCCESS));
+ launch_result));
}
private: