- Mac: Add CefDownloadManagerDelegate::ChooseDownloadPath implementation (issue #634).

- Persist downloaded files after CEF exits (issue #634).
- Shutdown the DownloadManager when CEF exits.
- Don't show an error message when downloading files with cefclient.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@682 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-06-11 17:35:23 +00:00
parent f79d18d510
commit a782ae94df
7 changed files with 104 additions and 21 deletions

View File

@ -270,6 +270,10 @@ void ClientHandler::OnLoadError(CefRefPtr<CefBrowser> browser,
const CefString& failedUrl) {
REQUIRE_UI_THREAD();
// Don't display an error for downloaded files.
if (errorCode == ERR_ABORTED)
return;
// Display a load error message.
std::stringstream ss;
ss << "<html><body><h2>Failed to load URL " << std::string(failedUrl) <<