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

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

Issue 2517953003: Move enable_webrtc to a buildflag header. (Closed)
Patch Set: Fix Created 4 years, 1 month 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/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"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/browser_process_impl.h" 12 #include "chrome/browser/browser_process_impl.h"
13 #include "chrome/browser/lifetime/application_lifetime.h" 13 #include "chrome/browser/lifetime/application_lifetime.h"
14 #include "chrome/browser/memory/tab_manager.h" 14 #include "chrome/browser/memory/tab_manager.h"
15 #include "chrome/browser/notifications/notification_platform_bridge.h" 15 #include "chrome/browser/notifications/notification_platform_bridge.h"
16 #include "chrome/browser/notifications/notification_ui_manager.h" 16 #include "chrome/browser/notifications/notification_ui_manager.h"
17 #include "chrome/browser/printing/print_job_manager.h" 17 #include "chrome/browser/printing/print_job_manager.h"
18 #include "chrome/browser/profiles/profile_manager.h" 18 #include "chrome/browser/profiles/profile_manager.h"
19 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 19 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
20 #include "chrome/common/features.h" 20 #include "chrome/common/features.h"
21 #include "chrome/test/base/testing_browser_process_platform_part.h" 21 #include "chrome/test/base/testing_browser_process_platform_part.h"
22 #include "components/network_time/network_time_tracker.h" 22 #include "components/network_time/network_time_tracker.h"
23 #include "components/policy/core/browser/browser_policy_connector.h" 23 #include "components/policy/core/browser/browser_policy_connector.h"
24 #include "components/prefs/pref_service.h" 24 #include "components/prefs/pref_service.h"
25 #include "components/subresource_filter/core/browser/ruleset_service.h" 25 #include "components/subresource_filter/core/browser/ruleset_service.h"
26 #include "content/public/browser/notification_service.h" 26 #include "content/public/browser/notification_service.h"
27 #include "extensions/features/features.h" 27 #include "extensions/features/features.h"
28 #include "media/media_features.h"
28 #include "net/url_request/url_request_context_getter.h" 29 #include "net/url_request/url_request_context_getter.h"
29 #include "printing/features/features.h" 30 #include "printing/features/features.h"
30 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
31 #include "ui/message_center/message_center.h" 32 #include "ui/message_center/message_center.h"
32 33
33 #if BUILDFLAG(ENABLE_BACKGROUND) 34 #if BUILDFLAG(ENABLE_BACKGROUND)
34 #include "chrome/browser/background/background_mode_manager.h" 35 #include "chrome/browser/background/background_mode_manager.h"
35 #endif 36 #endif
36 37
37 #if BUILDFLAG(ENABLE_EXTENSIONS) 38 #if BUILDFLAG(ENABLE_EXTENSIONS)
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 if (!media_file_system_registry_) 342 if (!media_file_system_registry_)
342 media_file_system_registry_.reset(new MediaFileSystemRegistry()); 343 media_file_system_registry_.reset(new MediaFileSystemRegistry());
343 return media_file_system_registry_.get(); 344 return media_file_system_registry_.get();
344 #endif 345 #endif
345 } 346 }
346 347
347 bool TestingBrowserProcess::created_local_state() const { 348 bool TestingBrowserProcess::created_local_state() const {
348 return (local_state_ != nullptr); 349 return (local_state_ != nullptr);
349 } 350 }
350 351
351 #if defined(ENABLE_WEBRTC) 352 #if BUILDFLAG(ENABLE_WEBRTC)
352 WebRtcLogUploader* TestingBrowserProcess::webrtc_log_uploader() { 353 WebRtcLogUploader* TestingBrowserProcess::webrtc_log_uploader() {
353 return nullptr; 354 return nullptr;
354 } 355 }
355 #endif 356 #endif
356 357
357 network_time::NetworkTimeTracker* 358 network_time::NetworkTimeTracker*
358 TestingBrowserProcess::network_time_tracker() { 359 TestingBrowserProcess::network_time_tracker() {
359 if (!network_time_tracker_) { 360 if (!network_time_tracker_) {
360 DCHECK(local_state_); 361 DCHECK(local_state_);
361 network_time_tracker_.reset(new network_time::NetworkTimeTracker( 362 network_time_tracker_.reset(new network_time::NetworkTimeTracker(
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 456
456 /////////////////////////////////////////////////////////////////////////////// 457 ///////////////////////////////////////////////////////////////////////////////
457 458
458 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { 459 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() {
459 TestingBrowserProcess::CreateInstance(); 460 TestingBrowserProcess::CreateInstance();
460 } 461 }
461 462
462 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { 463 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() {
463 TestingBrowserProcess::DeleteInstance(); 464 TestingBrowserProcess::DeleteInstance();
464 } 465 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | chrome/tools/service_discovery_sniffer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698