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

Side by Side Diff: chrome/browser/profiles/profile.cc

Issue 7282054: Remove more unnecessary ChromeURLRequestContext members. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright and chormeos tests. Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.h" 5 #include "chrome/browser/profiles/profile.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "base/string_util.h" 15 #include "base/string_util.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "chrome/browser/background/background_contents_service_factory.h" 17 #include "chrome/browser/background/background_contents_service_factory.h"
18 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
19 #include "chrome/browser/content_settings/host_content_settings_map.h" 19 #include "chrome/browser/content_settings/host_content_settings_map.h"
20 #include "chrome/browser/download/download_manager.h" 20 #include "chrome/browser/download/download_manager.h"
21 #include "chrome/browser/extensions/extension_info_map.h"
21 #include "chrome/browser/extensions/extension_message_service.h" 22 #include "chrome/browser/extensions/extension_message_service.h"
22 #include "chrome/browser/extensions/extension_pref_store.h" 23 #include "chrome/browser/extensions/extension_pref_store.h"
23 #include "chrome/browser/extensions/extension_process_manager.h" 24 #include "chrome/browser/extensions/extension_process_manager.h"
24 #include "chrome/browser/extensions/extension_service.h" 25 #include "chrome/browser/extensions/extension_service.h"
25 #include "chrome/browser/extensions/extension_special_storage_policy.h" 26 #include "chrome/browser/extensions/extension_special_storage_policy.h"
27 #include "chrome/browser/extensions/extension_webrequest_api.h"
26 #include "chrome/browser/net/pref_proxy_config_service.h" 28 #include "chrome/browser/net/pref_proxy_config_service.h"
27 #include "chrome/browser/prefs/pref_service.h" 29 #include "chrome/browser/prefs/pref_service.h"
28 #include "chrome/browser/profiles/off_the_record_profile_io_data.h" 30 #include "chrome/browser/profiles/off_the_record_profile_io_data.h"
29 #include "chrome/browser/profiles/profile_dependency_manager.h" 31 #include "chrome/browser/profiles/profile_dependency_manager.h"
30 #include "chrome/browser/sync/profile_sync_service.h" 32 #include "chrome/browser/sync/profile_sync_service.h"
31 #include "chrome/browser/themes/theme_service.h" 33 #include "chrome/browser/themes/theme_service.h"
32 #include "chrome/browser/transport_security_persister.h" 34 #include "chrome/browser/transport_security_persister.h"
33 #include "chrome/browser/ui/browser_list.h" 35 #include "chrome/browser/ui/browser_list.h"
34 #include "chrome/browser/ui/find_bar/find_bar_state.h" 36 #include "chrome/browser/ui/find_bar/find_bar_state.h"
35 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 37 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 } 671 }
670 return blob_storage_context_; 672 return blob_storage_context_;
671 } 673 }
672 674
673 virtual ExtensionInfoMap* GetExtensionInfoMap() { 675 virtual ExtensionInfoMap* GetExtensionInfoMap() {
674 return profile_->GetExtensionInfoMap(); 676 return profile_->GetExtensionInfoMap();
675 } 677 }
676 678
677 virtual ChromeURLDataManager* GetChromeURLDataManager() { 679 virtual ChromeURLDataManager* GetChromeURLDataManager() {
678 if (!chrome_url_data_manager_.get()) 680 if (!chrome_url_data_manager_.get())
679 chrome_url_data_manager_.reset(new ChromeURLDataManager(this)); 681 chrome_url_data_manager_.reset(new ChromeURLDataManager(
682 io_data_.GetChromeURLDataManagerBackendGetter()));
680 return chrome_url_data_manager_.get(); 683 return chrome_url_data_manager_.get();
681 } 684 }
682 685
683 virtual PromoCounter* GetInstantPromoCounter() { 686 virtual PromoCounter* GetInstantPromoCounter() {
684 return NULL; 687 return NULL;
685 } 688 }
686 689
687 #if defined(OS_CHROMEOS) 690 #if defined(OS_CHROMEOS)
688 virtual void ChangeAppLocale(const std::string& locale, AppLocaleChangedVia) { 691 virtual void ChangeAppLocale(const std::string& locale, AppLocaleChangedVia) {
689 } 692 }
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 }; 844 };
842 #endif 845 #endif
843 846
844 Profile* Profile::CreateOffTheRecordProfile() { 847 Profile* Profile::CreateOffTheRecordProfile() {
845 #if defined(OS_CHROMEOS) 848 #if defined(OS_CHROMEOS)
846 if (Profile::IsGuestSession()) 849 if (Profile::IsGuestSession())
847 return new GuestSessionProfile(this); 850 return new GuestSessionProfile(this);
848 #endif 851 #endif
849 return new OffTheRecordProfileImpl(this); 852 return new OffTheRecordProfileImpl(this);
850 } 853 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698