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

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

Issue 2654843003: Added UkmPageLoadMetricsObserver which sends top-level metrics to UKM (Closed)
Patch Set: Test fix Created 3 years, 10 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
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/path_service.h" 7 #include "base/path_service.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/time/default_clock.h" 9 #include "base/time/default_clock.h"
10 #include "base/time/default_tick_clock.h" 10 #include "base/time/default_tick_clock.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 TestingBrowserProcess::TestingBrowserProcess() 72 TestingBrowserProcess::TestingBrowserProcess()
73 : notification_service_(content::NotificationService::Create()), 73 : notification_service_(content::NotificationService::Create()),
74 app_locale_("en"), 74 app_locale_("en"),
75 is_shutting_down_(false), 75 is_shutting_down_(false),
76 local_state_(nullptr), 76 local_state_(nullptr),
77 io_thread_(nullptr), 77 io_thread_(nullptr),
78 system_request_context_(nullptr), 78 system_request_context_(nullptr),
79 rappor_service_(nullptr), 79 rappor_service_(nullptr),
80 ukm_service_(nullptr),
80 platform_part_(new TestingBrowserProcessPlatformPart()) { 81 platform_part_(new TestingBrowserProcessPlatformPart()) {
81 #if BUILDFLAG(ENABLE_EXTENSIONS) 82 #if BUILDFLAG(ENABLE_EXTENSIONS)
82 extensions_browser_client_.reset( 83 extensions_browser_client_.reset(
83 new extensions::ChromeExtensionsBrowserClient); 84 new extensions::ChromeExtensionsBrowserClient);
84 extensions::AppWindowClient::Set(ChromeAppWindowClient::GetInstance()); 85 extensions::AppWindowClient::Set(ChromeAppWindowClient::GetInstance());
85 extensions::ExtensionsBrowserClient::Set(extensions_browser_client_.get()); 86 extensions::ExtensionsBrowserClient::Set(extensions_browser_client_.get());
86 #endif 87 #endif
87 } 88 }
88 89
89 TestingBrowserProcess::~TestingBrowserProcess() { 90 TestingBrowserProcess::~TestingBrowserProcess() {
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 480
480 /////////////////////////////////////////////////////////////////////////////// 481 ///////////////////////////////////////////////////////////////////////////////
481 482
482 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { 483 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() {
483 TestingBrowserProcess::CreateInstance(); 484 TestingBrowserProcess::CreateInstance();
484 } 485 }
485 486
486 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { 487 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() {
487 TestingBrowserProcess::DeleteInstance(); 488 TestingBrowserProcess::DeleteInstance();
488 } 489 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698