Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(898)

Unified Diff: webkit/glue/webframeloaderclient_impl.cc

Issue 272: Rollback the rollback of r1806. Wasn't the cause of the test failure. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/plugins/plugin_list.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframeloaderclient_impl.cc
===================================================================
--- webkit/glue/webframeloaderclient_impl.cc (revision 1820)
+++ webkit/glue/webframeloaderclient_impl.cc (working copy)
@@ -1014,7 +1014,7 @@
WebViewDelegate* d = webframe_->webview_impl()->delegate();
if (d) {
const GURL url(webkit_glue::KURLToGURL(request.url()));
- const GURL referrer(webkit_glue::StringToStdWString(request.httpReferrer()));
+ const GURL referrer(webkit_glue::StringToStdString(request.httpReferrer()));
d->DownloadUrl(url, referrer);
}
}
@@ -1173,7 +1173,7 @@
// 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(L"x-apple-web-kit/");
+ String mimetype("x-apple-web-kit/");
mimetype.append(URLScheme.lower());
return mimetype;
}
@@ -1304,7 +1304,7 @@
for (index = 0; index < vector.size(); ++index) {
WebCore::CString src = vector[index].utf8();
rv[index] = new char[src.length() + 1];
- strncpy_s(rv[index], src.length() + 1, src.data(), _TRUNCATE);
+ base::strlcpy(rv[index], src.data(), src.length() + 1);
rv[index][src.length()] = '\0';
}
rv[index] = 0;
« no previous file with comments | « webkit/glue/plugins/plugin_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698