OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/test/base/testing_browser_process.h" | 5 #include "chrome/test/base/testing_browser_process.h" |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "base/time/default_clock.h" | 8 #include "base/time/default_clock.h" |
9 #include "base/time/default_tick_clock.h" | 9 #include "base/time/default_tick_clock.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 } | 350 } |
351 #endif | 351 #endif |
352 | 352 |
353 network_time::NetworkTimeTracker* | 353 network_time::NetworkTimeTracker* |
354 TestingBrowserProcess::network_time_tracker() { | 354 TestingBrowserProcess::network_time_tracker() { |
355 if (!network_time_tracker_) { | 355 if (!network_time_tracker_) { |
356 DCHECK(local_state_); | 356 DCHECK(local_state_); |
357 network_time_tracker_.reset(new network_time::NetworkTimeTracker( | 357 network_time_tracker_.reset(new network_time::NetworkTimeTracker( |
358 std::unique_ptr<base::Clock>(new base::DefaultClock()), | 358 std::unique_ptr<base::Clock>(new base::DefaultClock()), |
359 std::unique_ptr<base::TickClock>(new base::DefaultTickClock()), | 359 std::unique_ptr<base::TickClock>(new base::DefaultTickClock()), |
360 local_state_)); | 360 local_state_, system_request_context())); |
361 } | 361 } |
362 return network_time_tracker_.get(); | 362 return network_time_tracker_.get(); |
363 } | 363 } |
364 | 364 |
365 gcm::GCMDriver* TestingBrowserProcess::gcm_driver() { | 365 gcm::GCMDriver* TestingBrowserProcess::gcm_driver() { |
366 return nullptr; | 366 return nullptr; |
367 } | 367 } |
368 | 368 |
369 memory::TabManager* TestingBrowserProcess::GetTabManager() { | 369 memory::TabManager* TestingBrowserProcess::GetTabManager() { |
370 return nullptr; | 370 return nullptr; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 | 430 |
431 /////////////////////////////////////////////////////////////////////////////// | 431 /////////////////////////////////////////////////////////////////////////////// |
432 | 432 |
433 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { | 433 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { |
434 TestingBrowserProcess::CreateInstance(); | 434 TestingBrowserProcess::CreateInstance(); |
435 } | 435 } |
436 | 436 |
437 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { | 437 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { |
438 TestingBrowserProcess::DeleteInstance(); | 438 TestingBrowserProcess::DeleteInstance(); |
439 } | 439 } |
OLD | NEW |