summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2010-08-12 17:59:23 +0100
committerKristian Monsen <kristianm@google.com>2010-08-12 17:59:23 +0100
commitf3d41ba51d86bf719c7a65ab5297aea3c17e2d98 (patch)
tree579e3222bca50bb2fce3cb9c11e0fd50654103b9
parent1338f824ca6c264f4bc118d7e945e45132cf93b4 (diff)
downloadexternal_webkit-f3d41ba51d86bf719c7a65ab5297aea3c17e2d98.zip
external_webkit-f3d41ba51d86bf719c7a65ab5297aea3c17e2d98.tar.gz
external_webkit-f3d41ba51d86bf719c7a65ab5297aea3c17e2d98.tar.bz2
Build fix. Guard chromium headers, and never use chrome stack in simulator.
Change-Id: Iaf9a9de73870c497b9c925af3b1637a07b399640
-rw-r--r--Android.mk2
-rw-r--r--WebKit/android/WebCoreSupport/WebRequestContext.h7
2 files changed, 9 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index df2344a..1ffe589 100644
--- a/Android.mk
+++ b/Android.mk
@@ -79,10 +79,12 @@ ifneq ($(JAVASCRIPT_ENGINE),jsc)
endif
# Read the HTTP_STACK environment variable, default is android
+ifeq ($(TARGET_SIMULATOR),false)
HTTP_STACK = $(HTTP)
ifneq ($(HTTP_STACK),chrome)
HTTP_STACK = android
endif
+endif
BASE_PATH := $(call my-dir)
include $(CLEAR_VARS)
diff --git a/WebKit/android/WebCoreSupport/WebRequestContext.h b/WebKit/android/WebCoreSupport/WebRequestContext.h
index c2f0aaf..0ff081c 100644
--- a/WebKit/android/WebCoreSupport/WebRequestContext.h
+++ b/WebKit/android/WebCoreSupport/WebRequestContext.h
@@ -26,6 +26,11 @@
#ifndef WebRequestContext_h
#define WebRequestContext_h
+// libchromium_net is not available on the simulator for now
+// Cannot forward declare the chrome classes since this is
+// a subclass of a chrome class.
+#if USE(CHROME_NETWORK_STACK)
+
#include "net/http/http_cache.h"
#include "net/url_request/url_request_context.h"
@@ -46,4 +51,6 @@ private:
} // namespace android
+#endif // USE(CHROME_NETWORK_STACK)
+
#endif