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

Side by Side Diff: chrome/test/base/testing_browser_process.cc

Issue 1835823002: network_time_tracker: add temporary time protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lint Created 4 years, 7 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
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | components/client_update_protocol/ecdsa.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | components/client_update_protocol/ecdsa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698