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

Unified Diff: ceee/ie/common/chrome_frame_host.cc

Issue 4262005: Fixed return value of CFHost::getSession() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ceee/ie/common/chrome_frame_host.cc
===================================================================
--- ceee/ie/common/chrome_frame_host.cc (revision 64758)
+++ ceee/ie/common/chrome_frame_host.cc (working copy)
@@ -165,13 +165,15 @@
}
}
-HRESULT ChromeFrameHost::GetSessionId(int *session_id) {
+HRESULT ChromeFrameHost::GetSessionId(int* session_id) {
if (chrome_frame_) {
CComQIPtr<IChromeFrameInternal> chrome_frame_internal_(chrome_frame_);
- if (chrome_frame_internal_)
+ if (chrome_frame_internal_) {
return chrome_frame_internal_->getSessionId(session_id);
- else
- return kInvalidChromeSessionId;
+ } else {
+ *session_id = kInvalidChromeSessionId;
+ return S_OK;
+ }
}
NOTREACHED();
return E_UNEXPECTED;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698