| 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/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 Loading... |
| 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 |
| OLD | NEW |