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

Unified Diff: webkit/glue/user_agent.cc

Issue 6816024: Revert 80819 due to failed tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 8 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 | « sandbox/tests/common/controller.cc ('k') | webkit/plugins/npapi/test/plugin_npobject_proxy_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/user_agent.cc
===================================================================
--- webkit/glue/user_agent.cc (revision 80823)
+++ webkit/glue/user_agent.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -64,15 +64,14 @@
#if defined(OS_WIN)
std::string architecture_token;
- base::win::OSInfo* os_info = base::win::OSInfo::GetInstance();
- if (os_info->wow64_status() == base::win::OSInfo::WOW64_ENABLED) {
+ if (base::win::GetWOW64Status() == base::win::WOW64_ENABLED) {
architecture_token = "; WOW64";
} else {
- base::win::OSInfo::WindowsArchitecture windows_architecture =
- os_info->architecture();
- if (windows_architecture == base::win::OSInfo::X64_ARCHITECTURE)
+ base::win::WindowsArchitecture windows_architecture =
+ base::win::GetWindowsArchitecture();
+ if (windows_architecture == base::win::X64_ARCHITECTURE)
architecture_token = "; Win64; x64";
- else if (windows_architecture == base::win::OSInfo::IA64_ARCHITECTURE)
+ else if (windows_architecture == base::win::IA64_ARCHITECTURE)
architecture_token = "; Win64; IA64";
}
#endif
« no previous file with comments | « sandbox/tests/common/controller.cc ('k') | webkit/plugins/npapi/test/plugin_npobject_proxy_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698