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

Unified Diff: webkit/glue/glue_util.cc

Issue 8186: Plumb the referrer throughout the OpenURL APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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/glue_util.h ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | 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 3991)
+++ webkit/glue/glue_util.cc (working copy)
@@ -79,8 +79,7 @@
return GURL();
return GURL(spec.data(), spec.length(), url.parsed(), url.isValid());
#else
- const WebCore::String& spec = url.string();
- return GURL(WideToUTF8(StringToStdWString(spec)));
+ return StringToGURL(url.string());
#endif
}
@@ -95,6 +94,10 @@
#endif
}
+GURL StringToGURL(const WebCore::String& spec) {
+ return GURL(WideToUTF8(StringToStdWString(spec)));
+}
+
// Rect conversions ------------------------------------------------------------
gfx::Rect FromIntRect(const WebCore::IntRect& r) {
« no previous file with comments | « webkit/glue/glue_util.h ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698