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

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

Issue 662783002: Cleanup: Only include background_mode_manager.h when ENABLE_BACKGROUND is defined. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.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/background/background_mode_manager.h"
12 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/browser_process_impl.h" 12 #include "chrome/browser/browser_process_impl.h"
14 #include "chrome/browser/printing/print_job_manager.h" 13 #include "chrome/browser/printing/print_job_manager.h"
15 #include "chrome/browser/profiles/profile_manager.h" 14 #include "chrome/browser/profiles/profile_manager.h"
16 #include "chrome/browser/ui/apps/chrome_app_window_client.h" 15 #include "chrome/browser/ui/apps/chrome_app_window_client.h"
17 #include "chrome/test/base/testing_browser_process_platform_part.h" 16 #include "chrome/test/base/testing_browser_process_platform_part.h"
18 #include "components/network_time/network_time_tracker.h" 17 #include "components/network_time/network_time_tracker.h"
19 #include "content/public/browser/notification_service.h" 18 #include "content/public/browser/notification_service.h"
20 #include "net/url_request/url_request_context_getter.h" 19 #include "net/url_request/url_request_context_getter.h"
21 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
22 #include "ui/message_center/message_center.h" 21 #include "ui/message_center/message_center.h"
23 22
24 #if !defined(OS_IOS) 23 #if !defined(OS_IOS)
25 #include "chrome/browser/notifications/notification_ui_manager.h" 24 #include "chrome/browser/notifications/notification_ui_manager.h"
26 #include "chrome/browser/prerender/prerender_tracker.h" 25 #include "chrome/browser/prerender/prerender_tracker.h"
27 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 26 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
28 #endif 27 #endif
29 28
29 #if defined(ENABLE_BACKGROUND)
30 #include "chrome/browser/background/background_mode_manager.h"
31 #endif
32
30 #if defined(ENABLE_CONFIGURATION_POLICY) 33 #if defined(ENABLE_CONFIGURATION_POLICY)
31 #include "components/policy/core/browser/browser_policy_connector.h" 34 #include "components/policy/core/browser/browser_policy_connector.h"
32 #else 35 #else
33 #include "components/policy/core/common/policy_service_stub.h" 36 #include "components/policy/core/common/policy_service_stub.h"
34 #endif // defined(ENABLE_CONFIGURATION_POLICY) 37 #endif // defined(ENABLE_CONFIGURATION_POLICY)
35 38
36 #if defined(ENABLE_EXTENSIONS) 39 #if defined(ENABLE_EXTENSIONS)
37 #include "chrome/browser/extensions/chrome_extensions_browser_client.h" 40 #include "chrome/browser/extensions/chrome_extensions_browser_client.h"
38 #include "chrome/browser/media_galleries/media_file_system_registry.h" 41 #include "chrome/browser/media_galleries/media_file_system_registry.h"
39 #include "components/storage_monitor/storage_monitor.h" 42 #include "components/storage_monitor/storage_monitor.h"
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 441
439 /////////////////////////////////////////////////////////////////////////////// 442 ///////////////////////////////////////////////////////////////////////////////
440 443
441 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { 444 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() {
442 TestingBrowserProcess::CreateInstance(); 445 TestingBrowserProcess::CreateInstance();
443 } 446 }
444 447
445 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { 448 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() {
446 TestingBrowserProcess::DeleteInstance(); 449 TestingBrowserProcess::DeleteInstance();
447 } 450 }
OLDNEW
« chrome/browser/browser_process_impl.cc ('K') | « chrome/browser/profiles/profile_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698