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

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

Issue 2898033002: [TabManager] Move TabManager into chrome/browser/resource_coordinator. (Closed)
Patch Set: rebase Created 3 years, 6 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"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/browser_process_impl.h" 13 #include "chrome/browser/browser_process_impl.h"
14 #include "chrome/browser/lifetime/application_lifetime.h" 14 #include "chrome/browser/lifetime/application_lifetime.h"
15 #include "chrome/browser/memory/tab_manager.h"
16 #include "chrome/browser/notifications/notification_platform_bridge.h" 15 #include "chrome/browser/notifications/notification_platform_bridge.h"
17 #include "chrome/browser/notifications/notification_ui_manager.h" 16 #include "chrome/browser/notifications/notification_ui_manager.h"
18 #include "chrome/browser/printing/print_job_manager.h" 17 #include "chrome/browser/printing/print_job_manager.h"
19 #include "chrome/browser/profiles/profile_manager.h" 18 #include "chrome/browser/profiles/profile_manager.h"
19 #include "chrome/browser/resource_coordinator/tab_manager.h"
20 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 20 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
21 #include "chrome/common/chrome_paths.h" 21 #include "chrome/common/chrome_paths.h"
22 #include "chrome/common/features.h" 22 #include "chrome/common/features.h"
23 #include "chrome/test/base/testing_browser_process_platform_part.h" 23 #include "chrome/test/base/testing_browser_process_platform_part.h"
24 #include "components/network_time/network_time_tracker.h" 24 #include "components/network_time/network_time_tracker.h"
25 #include "components/policy/core/browser/browser_policy_connector.h" 25 #include "components/policy/core/browser/browser_policy_connector.h"
26 #include "components/prefs/pref_service.h" 26 #include "components/prefs/pref_service.h"
27 #include "components/subresource_filter/content/browser/content_ruleset_service. h" 27 #include "components/subresource_filter/content/browser/content_ruleset_service. h"
28 #include "content/public/browser/notification_service.h" 28 #include "content/public/browser/notification_service.h"
29 #include "extensions/features/features.h" 29 #include "extensions/features/features.h"
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 std::unique_ptr<base::TickClock>(new base::DefaultTickClock()), 384 std::unique_ptr<base::TickClock>(new base::DefaultTickClock()),
385 local_state_, system_request_context())); 385 local_state_, system_request_context()));
386 } 386 }
387 return network_time_tracker_.get(); 387 return network_time_tracker_.get();
388 } 388 }
389 389
390 gcm::GCMDriver* TestingBrowserProcess::gcm_driver() { 390 gcm::GCMDriver* TestingBrowserProcess::gcm_driver() {
391 return nullptr; 391 return nullptr;
392 } 392 }
393 393
394 memory::TabManager* TestingBrowserProcess::GetTabManager() { 394 resource_coordinator::TabManager* TestingBrowserProcess::GetTabManager() {
395 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) 395 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
396 if (!tab_manager_.get()) 396 if (!tab_manager_.get())
397 tab_manager_.reset(new memory::TabManager()); 397 tab_manager_.reset(new resource_coordinator::TabManager());
398 return tab_manager_.get(); 398 return tab_manager_.get();
399 #else 399 #else
400 return nullptr; 400 return nullptr;
401 #endif 401 #endif
402 } 402 }
403 403
404 shell_integration::DefaultWebClientState 404 shell_integration::DefaultWebClientState
405 TestingBrowserProcess::CachedDefaultWebClientState() { 405 TestingBrowserProcess::CachedDefaultWebClientState() {
406 return shell_integration::UNKNOWN_DEFAULT; 406 return shell_integration::UNKNOWN_DEFAULT;
407 } 407 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 481
482 /////////////////////////////////////////////////////////////////////////////// 482 ///////////////////////////////////////////////////////////////////////////////
483 483
484 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { 484 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() {
485 TestingBrowserProcess::CreateInstance(); 485 TestingBrowserProcess::CreateInstance();
486 } 486 }
487 487
488 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { 488 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() {
489 TestingBrowserProcess::DeleteInstance(); 489 TestingBrowserProcess::DeleteInstance();
490 } 490 }
OLDNEW
« chrome/test/BUILD.gn ('K') | « chrome/test/base/testing_browser_process.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698