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

Unified Diff: webkit/glue/webdevtoolsfrontend_impl.cc

Issue 519030: bsds: views/ and webkit/ support for FreeBSD/OpenBSD (Closed)
Patch Set: Created 11 years 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
Index: webkit/glue/webdevtoolsfrontend_impl.cc
diff --git a/webkit/glue/webdevtoolsfrontend_impl.cc b/webkit/glue/webdevtoolsfrontend_impl.cc
index 8949fcae1fbe8d9f64d8f11f471f14187c953db9..0eb9399d0fb70b43523942dacdc8d1ab5ed99448 100644
--- a/webkit/glue/webdevtoolsfrontend_impl.cc
+++ b/webkit/glue/webdevtoolsfrontend_impl.cc
@@ -390,11 +390,15 @@ v8::Handle<v8::Value> WebDevToolsFrontendImpl::JsLoaded(
// static
v8::Handle<v8::Value> WebDevToolsFrontendImpl::JsPlatform(
const v8::Arguments& args) {
-#if defined OS_MACOSX
+#if defined(OS_MACOSX)
return v8String("mac-leopard");
-#elif defined OS_LINUX
+#elif defined(OS_LINUX)
return v8String("linux");
-#else
+#elif defined(OS_FREEBSD)
+ return v8String("freebsd");
+#elif defined(OS_OPENBSD)
+ return v8String("openbsd");
+#elif defined(OS_WIN)
return v8String("windows");
#endif
}

Powered by Google App Engine
This is Rietveld 408576698