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

Unified Diff: webkit/glue/webkit_glue.cc

Issue 8670: Switch to using the message loop rather than gtk_main(). (Closed)
Patch Set: Addressing comments Created 12 years, 2 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 | « base/logging.h ('k') | webkit/tools/test_shell/SConscript » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webkit_glue.cc
diff --git a/webkit/glue/webkit_glue.cc b/webkit/glue/webkit_glue.cc
index e59bd6850480f5b9380c6107b3393a1319b2003c..1c5d0fd25cfe766715b6d1ef97343dbc3b802c53 100644
--- a/webkit/glue/webkit_glue.cc
+++ b/webkit/glue/webkit_glue.cc
@@ -403,6 +403,15 @@ void SetUserAgentToDefault() {
WEBKIT_VERSION_MAJOR,
WEBKIT_VERSION_MINOR
);
+#elif defined(OS_LINUX)
+ // TODO(agl): We don't have version information embedded in files under Linux
+ // so we use the following string which is based off the UA string for
+ // Windows. Some solution for embedding the Chrome version number needs to be
+ // found here.
+ StringAppendF(
+ &default_user_agent,
+ "Mozilla/5.0 (Linux; U; en-US) AppleWebKit/525.13 "
+ "(KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13");
#else
// TODO(port): we need something like FileVersionInfo for our UA string.
NOTIMPLEMENTED();
« no previous file with comments | « base/logging.h ('k') | webkit/tools/test_shell/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698