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

Side by Side Diff: chrome/browser/profiles/profile_impl.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/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/ui/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/browser/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #include "components/omnibox/browser/autocomplete_classifier.h" 94 #include "components/omnibox/browser/autocomplete_classifier.h"
95 #include "components/policy/core/browser/browser_policy_connector.h" 95 #include "components/policy/core/browser/browser_policy_connector.h"
96 #include "components/pref_registry/pref_registry_syncable.h" 96 #include "components/pref_registry/pref_registry_syncable.h"
97 #include "components/prefs/json_pref_store.h" 97 #include "components/prefs/json_pref_store.h"
98 #include "components/prefs/scoped_user_pref_update.h" 98 #include "components/prefs/scoped_user_pref_update.h"
99 #include "components/proxy_config/pref_proxy_config_tracker.h" 99 #include "components/proxy_config/pref_proxy_config_tracker.h"
100 #include "components/signin/core/browser/signin_manager.h" 100 #include "components/signin/core/browser/signin_manager.h"
101 #include "components/signin/core/common/signin_pref_names.h" 101 #include "components/signin/core/common/signin_pref_names.h"
102 #include "components/ssl_config/ssl_config_service_manager.h" 102 #include "components/ssl_config/ssl_config_service_manager.h"
103 #include "components/syncable_prefs/pref_service_syncable.h" 103 #include "components/syncable_prefs/pref_service_syncable.h"
104 #include "components/ui/zoom/zoom_event_manager.h"
105 #include "components/url_formatter/url_fixer.h" 104 #include "components/url_formatter/url_fixer.h"
106 #include "components/user_prefs/tracked/tracked_preference_validation_delegate.h " 105 #include "components/user_prefs/tracked/tracked_preference_validation_delegate.h "
107 #include "components/user_prefs/user_prefs.h" 106 #include "components/user_prefs/user_prefs.h"
107 #include "components/zoom/zoom_event_manager.h"
108 #include "content/public/browser/browser_thread.h" 108 #include "content/public/browser/browser_thread.h"
109 #include "content/public/browser/dom_storage_context.h" 109 #include "content/public/browser/dom_storage_context.h"
110 #include "content/public/browser/notification_service.h" 110 #include "content/public/browser/notification_service.h"
111 #include "content/public/browser/render_process_host.h" 111 #include "content/public/browser/render_process_host.h"
112 #include "content/public/browser/storage_partition.h" 112 #include "content/public/browser/storage_partition.h"
113 #include "content/public/browser/url_data_source.h" 113 #include "content/public/browser/url_data_source.h"
114 #include "content/public/browser/user_metrics.h" 114 #include "content/public/browser/user_metrics.h"
115 #include "content/public/common/content_constants.h" 115 #include "content/public/common/content_constants.h"
116 #include "content/public/common/page_zoom.h" 116 #include "content/public/common/page_zoom.h"
117 #include "ui/base/l10n/l10n_util.h" 117 #include "ui/base/l10n/l10n_util.h"
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 } 705 }
706 706
707 Profile::ProfileType ProfileImpl::GetProfileType() const { 707 Profile::ProfileType ProfileImpl::GetProfileType() const {
708 return REGULAR_PROFILE; 708 return REGULAR_PROFILE;
709 } 709 }
710 710
711 std::unique_ptr<content::ZoomLevelDelegate> 711 std::unique_ptr<content::ZoomLevelDelegate>
712 ProfileImpl::CreateZoomLevelDelegate(const base::FilePath& partition_path) { 712 ProfileImpl::CreateZoomLevelDelegate(const base::FilePath& partition_path) {
713 return base::WrapUnique(new ChromeZoomLevelPrefs( 713 return base::WrapUnique(new ChromeZoomLevelPrefs(
714 GetPrefs(), GetPath(), partition_path, 714 GetPrefs(), GetPath(), partition_path,
715 ui_zoom::ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr())); 715 zoom::ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr()));
716 } 716 }
717 717
718 base::FilePath ProfileImpl::GetPath() const { 718 base::FilePath ProfileImpl::GetPath() const {
719 return path_; 719 return path_;
720 } 720 }
721 721
722 scoped_refptr<base::SequencedTaskRunner> ProfileImpl::GetIOTaskRunner() { 722 scoped_refptr<base::SequencedTaskRunner> ProfileImpl::GetIOTaskRunner() {
723 return JsonPrefStore::GetTaskRunnerForFile( 723 return JsonPrefStore::GetTaskRunnerForFile(
724 GetPath(), BrowserThread::GetBlockingPool()); 724 GetPath(), BrowserThread::GetBlockingPool());
725 } 725 }
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { 1254 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) {
1255 domain_reliability::DomainReliabilityService* service = 1255 domain_reliability::DomainReliabilityService* service =
1256 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> 1256 domain_reliability::DomainReliabilityServiceFactory::GetInstance()->
1257 GetForBrowserContext(this); 1257 GetForBrowserContext(this);
1258 if (!service) 1258 if (!service)
1259 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); 1259 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>();
1260 1260
1261 return service->CreateMonitor( 1261 return service->CreateMonitor(
1262 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); 1262 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
1263 } 1263 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698