cefclient: Move StringResourceMap to ClientHandler (see issue #2586)

Fixes a DCHECK when creating multiple windows in cefclient due to the creation
of multiple StringResourceProvider objects.
This commit is contained in:
Marshall Greenblatt
2019-10-18 15:30:53 +02:00
parent 329facfbdf
commit aad4bf2464
4 changed files with 41 additions and 32 deletions

View File

@@ -35,8 +35,11 @@ std::string GetDataURI(const std::string& data, const std::string& mime_type);
// Returns the string representation of the specified error code.
std::string GetErrorString(cef_errorcode_t code);
typedef std::map<std::string, std::string> StringResourceMap;
// Set up the resource manager for tests.
void SetupResourceManager(CefRefPtr<CefResourceManager> resource_manager);
void SetupResourceManager(CefRefPtr<CefResourceManager> resource_manager,
StringResourceMap* string_resource_map);
// Show a JS alert message.
void Alert(CefRefPtr<CefBrowser> browser, const std::string& message);