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

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

Issue 22927015: Introduce NavigatorID IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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/NavigatorBase.h ('k') | Source/core/page/NavigatorID.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/NavigatorBase.cpp
diff --git a/Source/core/page/NavigatorBase.cpp b/Source/core/page/NavigatorBase.cpp
index 06c46d4fff7e0bed2bbce36aa7c9223adf29ddaf..9d9b94d95f38f83f5d9ddf083c43c3a705be46a7 100644
--- a/Source/core/page/NavigatorBase.cpp
+++ b/Source/core/page/NavigatorBase.cpp
@@ -27,26 +27,8 @@
#include "config.h"
#include "core/page/NavigatorBase.h"
-#include "wtf/CPU.h"
#include "wtf/text/WTFString.h"
-#if OS(LINUX)
-#include "sys/utsname.h"
-#include "wtf/StdLibExtras.h"
-#endif
-
-#ifndef WEBCORE_NAVIGATOR_PLATFORM
-#if OS(DARWIN) && (CPU(PPC) || CPU(PPC64))
-#define WEBCORE_NAVIGATOR_PLATFORM "MacPPC"
-#elif OS(DARWIN) && (CPU(X86) || CPU(X86_64))
-#define WEBCORE_NAVIGATOR_PLATFORM "MacIntel"
-#elif OS(WINDOWS)
-#define WEBCORE_NAVIGATOR_PLATFORM "Win32"
-#else
-#define WEBCORE_NAVIGATOR_PLATFORM ""
-#endif
-#endif // ifndef WEBCORE_NAVIGATOR_PLATFORM
-
#ifndef WEBCORE_NAVIGATOR_PRODUCT
#define WEBCORE_NAVIGATOR_PRODUCT "Gecko"
#endif // ifndef WEBCORE_NAVIGATOR_PRODUCT
@@ -70,31 +52,6 @@ NavigatorBase::~NavigatorBase()
{
}
-String NavigatorBase::appName() const
-{
- return "Netscape";
-}
-
-String NavigatorBase::appVersion() const
-{
- // Version is everything in the user agent string past the "Mozilla/" prefix.
- const String& agent = userAgent();
- return agent.substring(agent.find('/') + 1);
-}
-
-String NavigatorBase::platform() const
-{
-#if OS(LINUX)
- if (!String(WEBCORE_NAVIGATOR_PLATFORM).isEmpty())
- return WEBCORE_NAVIGATOR_PLATFORM;
- struct utsname osname;
- DEFINE_STATIC_LOCAL(String, platformName, (uname(&osname) >= 0 ? String(osname.sysname) + String(" ") + String(osname.machine) : emptyString()));
- return platformName;
-#else
- return WEBCORE_NAVIGATOR_PLATFORM;
-#endif
-}
-
String NavigatorBase::appCodeName() const
{
return "Mozilla";
« no previous file with comments | « Source/core/page/NavigatorBase.h ('k') | Source/core/page/NavigatorID.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698