diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-06 00:47:30 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-06 00:47:30 +0000 |
commit | 338472af8c0b4ef1cf6257a7882a17cbee84a122 (patch) | |
tree | 4e4ac3d648b6727b90813830752e17b0f112269e /webkit/glue/webframeloaderclient_impl.cc | |
parent | 4956cfbdd0cda5969acd391c3fe10486bf659488 (diff) | |
download | chromium_src-338472af8c0b4ef1cf6257a7882a17cbee84a122.zip chromium_src-338472af8c0b4ef1cf6257a7882a17cbee84a122.tar.gz chromium_src-338472af8c0b4ef1cf6257a7882a17cbee84a122.tar.bz2 |
Rollback 1806, requested by Ojan.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframeloaderclient_impl.cc')
-rw-r--r-- | webkit/glue/webframeloaderclient_impl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/glue/webframeloaderclient_impl.cc b/webkit/glue/webframeloaderclient_impl.cc index e169bc4..7ba384a 100644 --- a/webkit/glue/webframeloaderclient_impl.cc +++ b/webkit/glue/webframeloaderclient_impl.cc @@ -1014,7 +1014,7 @@ void WebFrameLoaderClient::startDownload(const ResourceRequest& request) { WebViewDelegate* d = webframe_->webview_impl()->delegate(); if (d) { const GURL url(webkit_glue::KURLToGURL(request.url())); - const GURL referrer(webkit_glue::StringToStdString(request.httpReferrer())); + const GURL referrer(webkit_glue::StringToStdWString(request.httpReferrer())); d->DownloadUrl(url, referrer); } } @@ -1173,7 +1173,7 @@ String WebFrameLoaderClient::generatedMIMETypeForURLScheme(const String& URLSche // function is WebView::registerViewClass, where it is used as part of the // process by which custom view classes for certain document representations // are registered. - String mimetype("x-apple-web-kit/"); + String mimetype(L"x-apple-web-kit/"); mimetype.append(URLScheme.lower()); return mimetype; } @@ -1304,7 +1304,7 @@ static char** ToArray(const Vector<WebCore::String> &vector) { for (index = 0; index < vector.size(); ++index) { WebCore::CString src = vector[index].utf8(); rv[index] = new char[src.length() + 1]; - base::strlcpy(rv[index], src.data(), src.length() + 1); + strncpy_s(rv[index], src.length() + 1, src.data(), _TRUNCATE); rv[index][src.length()] = '\0'; } rv[index] = 0; |