Add password argument to CefZipArchive::Load (issue #986).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1277 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2013-06-10 18:23:48 +00:00
parent a135b46e2c
commit ca3a2da5ee
3 changed files with 7 additions and 3 deletions

View File

@@ -53,6 +53,7 @@ CefZipArchive::~CefZipArchive() {
}
size_t CefZipArchive::Load(CefRefPtr<CefStreamReader> stream,
const CefString& password,
bool overwriteExisting) {
AutoLock lock_scope(this);
@@ -76,7 +77,7 @@ size_t CefZipArchive::Load(CefRefPtr<CefStreamReader> stream,
continue;
}
if (!reader->OpenFile(CefString()))
if (!reader->OpenFile(password))
break;
name = reader->GetFileName();