| OLD | NEW |
| 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 Loading... |
| 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", false); | |
| 268 } | 267 } |
| 269 | 268 |
| 270 void SetUpTestEnvironment() { | 269 void SetUpTestEnvironment() { |
| 271 SetUpTestEnvironmentImpl(false); | 270 SetUpTestEnvironmentImpl(false); |
| 272 } | 271 } |
| 273 | 272 |
| 274 void SetUpTestEnvironmentForUnitTests() { | 273 void SetUpTestEnvironmentForUnitTests() { |
| 275 SetUpTestEnvironmentImpl(true); | 274 SetUpTestEnvironmentImpl(true); |
| 276 } | 275 } |
| 277 | 276 |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 return ui::GdkNativeKeyCodeForWindowsKeyCode(code, shift); | 634 return ui::GdkNativeKeyCodeForWindowsKeyCode(code, shift); |
| 636 } | 635 } |
| 637 #endif | 636 #endif |
| 638 | 637 |
| 639 // Timers | 638 // Timers |
| 640 double GetForegroundTabTimerInterval() { | 639 double GetForegroundTabTimerInterval() { |
| 641 return webkit_glue::kForegroundTabTimerInterval; | 640 return webkit_glue::kForegroundTabTimerInterval; |
| 642 } | 641 } |
| 643 | 642 |
| 644 } // namespace webkit_support | 643 } // namespace webkit_support |
| OLD | NEW |