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

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

Issue 2019423005: Move //components/ui/zoom to top-level under //components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/BUILD.gn » ('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_profile.h" 5 #include "chrome/test/base/testing_profile.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #include "components/omnibox/browser/history_index_restore_observer.h" 70 #include "components/omnibox/browser/history_index_restore_observer.h"
71 #include "components/omnibox/browser/in_memory_url_index.h" 71 #include "components/omnibox/browser/in_memory_url_index.h"
72 #include "components/policy/core/common/configuration_policy_provider.h" 72 #include "components/policy/core/common/configuration_policy_provider.h"
73 #include "components/policy/core/common/policy_service.h" 73 #include "components/policy/core/common/policy_service.h"
74 #include "components/policy/core/common/policy_service_impl.h" 74 #include "components/policy/core/common/policy_service_impl.h"
75 #include "components/policy/core/common/schema.h" 75 #include "components/policy/core/common/schema.h"
76 #include "components/prefs/testing_pref_store.h" 76 #include "components/prefs/testing_pref_store.h"
77 #include "components/proxy_config/pref_proxy_config_tracker.h" 77 #include "components/proxy_config/pref_proxy_config_tracker.h"
78 #include "components/syncable_prefs/pref_service_syncable.h" 78 #include "components/syncable_prefs/pref_service_syncable.h"
79 #include "components/syncable_prefs/testing_pref_service_syncable.h" 79 #include "components/syncable_prefs/testing_pref_service_syncable.h"
80 #include "components/ui/zoom/zoom_event_manager.h"
81 #include "components/user_prefs/user_prefs.h" 80 #include "components/user_prefs/user_prefs.h"
82 #include "components/webdata_services/web_data_service_wrapper.h" 81 #include "components/webdata_services/web_data_service_wrapper.h"
82 #include "components/zoom/zoom_event_manager.h"
83 #include "content/public/browser/browser_thread.h" 83 #include "content/public/browser/browser_thread.h"
84 #include "content/public/browser/cookie_store_factory.h" 84 #include "content/public/browser/cookie_store_factory.h"
85 #include "content/public/browser/notification_service.h" 85 #include "content/public/browser/notification_service.h"
86 #include "content/public/browser/render_process_host.h" 86 #include "content/public/browser/render_process_host.h"
87 #include "content/public/browser/storage_partition.h" 87 #include "content/public/browser/storage_partition.h"
88 #include "content/public/browser/zoom_level_delegate.h" 88 #include "content/public/browser/zoom_level_delegate.h"
89 #include "content/public/test/mock_resource_context.h" 89 #include "content/public/test/mock_resource_context.h"
90 #include "content/public/test/test_utils.h" 90 #include "content/public/test/test_utils.h"
91 #include "extensions/common/constants.h" 91 #include "extensions/common/constants.h"
92 #include "net/cookies/cookie_store.h" 92 #include "net/cookies/cookie_store.h"
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 } 627 }
628 628
629 base::FilePath TestingProfile::GetPath() const { 629 base::FilePath TestingProfile::GetPath() const {
630 return profile_path_; 630 return profile_path_;
631 } 631 }
632 632
633 std::unique_ptr<content::ZoomLevelDelegate> 633 std::unique_ptr<content::ZoomLevelDelegate>
634 TestingProfile::CreateZoomLevelDelegate(const base::FilePath& partition_path) { 634 TestingProfile::CreateZoomLevelDelegate(const base::FilePath& partition_path) {
635 return base::WrapUnique(new ChromeZoomLevelPrefs( 635 return base::WrapUnique(new ChromeZoomLevelPrefs(
636 GetPrefs(), GetPath(), partition_path, 636 GetPrefs(), GetPath(), partition_path,
637 ui_zoom::ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr())); 637 zoom::ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr()));
638 } 638 }
639 639
640 scoped_refptr<base::SequencedTaskRunner> TestingProfile::GetIOTaskRunner() { 640 scoped_refptr<base::SequencedTaskRunner> TestingProfile::GetIOTaskRunner() {
641 return base::MessageLoop::current()->task_runner(); 641 return base::MessageLoop::current()->task_runner();
642 } 642 }
643 643
644 syncable_prefs::TestingPrefServiceSyncable* 644 syncable_prefs::TestingPrefServiceSyncable*
645 TestingProfile::GetTestingPrefService() { 645 TestingProfile::GetTestingPrefService() {
646 DCHECK(prefs_); 646 DCHECK(prefs_);
647 DCHECK(testing_prefs_); 647 DCHECK(testing_prefs_);
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 // Note: Owned by |original_profile|. 1032 // Note: Owned by |original_profile|.
1033 return new TestingProfile(path_, delegate_, 1033 return new TestingProfile(path_, delegate_,
1034 #if defined(ENABLE_EXTENSIONS) 1034 #if defined(ENABLE_EXTENSIONS)
1035 extension_policy_, 1035 extension_policy_,
1036 #endif 1036 #endif
1037 std::move(pref_service_), original_profile, 1037 std::move(pref_service_), original_profile,
1038 guest_session_, supervised_user_id_, 1038 guest_session_, supervised_user_id_,
1039 std::move(policy_service_), testing_factories_, 1039 std::move(policy_service_), testing_factories_,
1040 profile_name_); 1040 profile_name_);
1041 } 1041 }
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698