Skip to content

Commit

Permalink
Add error logging for CefApp::OnRegisterCustomSchemes
Browse files Browse the repository at this point in the history
  • Loading branch information
amaitland committed May 8, 2017
1 parent c8d0127 commit 79b5a8e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CefSharp.Core/Internals/CefSharpApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,13 @@ namespace CefSharp
{
for each (CefCustomScheme^ scheme in _cefSettings->CefCustomSchemes)
{
// TOOD: Consider adding error handling here. But where do we report any errors that may have occurred?
registrar->AddCustomScheme(StringUtils::ToNative(scheme->SchemeName), scheme->IsStandard, scheme->IsLocal, scheme->IsDisplayIsolated, scheme->IsSecure, scheme->IsCorsEnabled, false);
auto success = registrar->AddCustomScheme(StringUtils::ToNative(scheme->SchemeName), scheme->IsStandard, scheme->IsLocal, scheme->IsDisplayIsolated, scheme->IsSecure, scheme->IsCorsEnabled, false);

if (!success)
{
String^ msg = "CefSchemeRegistrar::AddCustomScheme failed for schemeName:" + scheme->SchemeName;
LOG(ERROR) << StringUtils::ToNative(msg).ToString();
}
}
};

Expand Down

0 comments on commit 79b5a8e

Please sign in to comment.