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

Unified Diff: webkit/glue/glue_util.cc

Issue 21343: Make it possible to initialize KURLGoogle from a CString. This is so that I... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | « third_party/WebKit/WebCore/platform/KURLGooglePrivate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/glue_util.cc
===================================================================
--- webkit/glue/glue_util.cc (revision 9744)
+++ webkit/glue/glue_util.cc (working copy)
@@ -92,8 +92,9 @@
const std::string& spec = url.possibly_invalid_spec();
#if USE(GOOGLEURL)
// Convert using the internal structures to avoid re-parsing.
- return WebCore::KURL(spec.c_str(), static_cast<int>(spec.length()),
- url.parsed_for_possibly_invalid_spec(), url.is_valid());
+ return WebCore::KURL(
+ WebCore::CString(spec.c_str(), static_cast<int>(spec.length())),
+ url.parsed_for_possibly_invalid_spec(), url.is_valid());
#else
return WebCore::KURL(StdWStringToString(UTF8ToWide(spec)));
#endif
« no previous file with comments | « third_party/WebKit/WebCore/platform/KURLGooglePrivate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698