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

Side by Side Diff: webkit/support/webkit_support.cc

Issue 7922023: Remove webkit_glue::BuildUserAgent(), remove windows spoofing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix GetUserAgent() to return whether the user agent is overriding, clean up Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/support/webkit_support.h" 5 #include "webkit/support/webkit_support.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/debugger.h" 10 #include "base/debug/debugger.h"
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // at same time. 257 // at same time.
258 url_util::Initialize(); 258 url_util::Initialize();
259 BeforeInitialize(unit_test_mode); 259 BeforeInitialize(unit_test_mode);
260 test_environment = new TestEnvironment(unit_test_mode); 260 test_environment = new TestEnvironment(unit_test_mode);
261 AfterInitialize(unit_test_mode); 261 AfterInitialize(unit_test_mode);
262 if (!unit_test_mode) { 262 if (!unit_test_mode) {
263 // Load ICU data tables. This has to run after TestEnvironment is created 263 // Load ICU data tables. This has to run after TestEnvironment is created
264 // because on Linux, we need base::AtExitManager. 264 // because on Linux, we need base::AtExitManager.
265 icu_util::Initialize(); 265 icu_util::Initialize();
266 } 266 }
267 webkit_glue::SetUserAgent("DumpRenderTree/0.0.0.0", false);
267 } 268 }
268 269
269 void SetUpTestEnvironment() { 270 void SetUpTestEnvironment() {
270 SetUpTestEnvironmentImpl(false); 271 SetUpTestEnvironmentImpl(false);
271 } 272 }
272 273
273 void SetUpTestEnvironmentForUnitTests() { 274 void SetUpTestEnvironmentForUnitTests() {
274 SetUpTestEnvironmentImpl(true); 275 SetUpTestEnvironmentImpl(true);
275 } 276 }
276 277
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 return ui::GdkNativeKeyCodeForWindowsKeyCode(code, shift); 635 return ui::GdkNativeKeyCodeForWindowsKeyCode(code, shift);
635 } 636 }
636 #endif 637 #endif
637 638
638 // Timers 639 // Timers
639 double GetForegroundTabTimerInterval() { 640 double GetForegroundTabTimerInterval() {
640 return webkit_glue::kForegroundTabTimerInterval; 641 return webkit_glue::kForegroundTabTimerInterval;
641 } 642 }
642 643
643 } // namespace webkit_support 644 } // namespace webkit_support
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698