summaryrefslogtreecommitdiffstats
path: root/webkit/glue/glue_util.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-18 18:46:40 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-18 18:46:40 +0000
commit43390223664bd9e55d33b56799e3d98d5504be6b (patch)
tree247531d999c44f8ba121eafa07be607bace01a02 /webkit/glue/glue_util.cc
parent7e1e1d207ef6e11fb5790b95c737c9b1f4ffdada (diff)
downloadchromium_src-43390223664bd9e55d33b56799e3d98d5504be6b.zip
chromium_src-43390223664bd9e55d33b56799e3d98d5504be6b.tar.gz
chromium_src-43390223664bd9e55d33b56799e3d98d5504be6b.tar.bz2
Chrome side of unforking. I need to pull WebKit with the change that unforks KURL.h
This makes us defile USE(GOOGLEURL) and use that instead of USE_GOOGLE_URL_LIBRARY. I also fixed some places to be able to compile without it if possible (I think I will be wanting that capability in the future to test changes they may make upstream). Review URL: http://codereview.chromium.org/14494 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7231 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/glue_util.cc')
-rw-r--r--webkit/glue/glue_util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/glue/glue_util.cc b/webkit/glue/glue_util.cc
index 5bbae41..997af01 100644
--- a/webkit/glue/glue_util.cc
+++ b/webkit/glue/glue_util.cc
@@ -73,7 +73,7 @@ WebCore::String StdStringToString(const std::string& str) {
// URL conversions -------------------------------------------------------------
GURL KURLToGURL(const WebCore::KURL& url) {
-#ifdef USE_GOOGLE_URL_LIBRARY
+#if USE(GOOGLEURL)
const WebCore::CString& spec = url.utf8String();
if (spec.isNull() || 0 == spec.length())
return GURL();
@@ -85,7 +85,7 @@ GURL KURLToGURL(const WebCore::KURL& url) {
WebCore::KURL GURLToKURL(const GURL& url) {
const std::string& spec = url.possibly_invalid_spec();
-#ifdef USE_GOOGLE_URL_LIBRARY
+#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());