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

Unified Diff: Source/core/page/NavigatorID.cpp

Issue 22866014: Expose navigator.product and navigator.appCodeName constants to workers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 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 | « Source/core/page/NavigatorID.h ('k') | Source/core/page/NavigatorID.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/NavigatorID.cpp
diff --git a/Source/core/page/NavigatorID.cpp b/Source/core/page/NavigatorID.cpp
index 6f60f5d061006f5c2b3dcb0a5b4b94faf336b3fe..54363323ad913435bcf0baea6c596947b5942890 100644
--- a/Source/core/page/NavigatorID.cpp
+++ b/Source/core/page/NavigatorID.cpp
@@ -40,6 +40,10 @@
#include <sys/utsname.h>
#endif
+#ifndef WEBCORE_NAVIGATOR_PRODUCT
+#define WEBCORE_NAVIGATOR_PRODUCT "Gecko"
+#endif // ifndef WEBCORE_NAVIGATOR_PRODUCT
+
namespace WebCore {
String NavigatorID::appName(const NavigatorBase*)
@@ -74,4 +78,14 @@ String NavigatorID::platform(const NavigatorBase*)
#endif
}
+String NavigatorID::appCodeName(const NavigatorBase*)
+{
+ return "Mozilla";
+}
+
+String NavigatorID::product(const NavigatorBase*)
+{
+ return WEBCORE_NAVIGATOR_PRODUCT;
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/page/NavigatorID.h ('k') | Source/core/page/NavigatorID.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698