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

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

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | content/browser/appcache/chrome_appcache_service.h » ('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 "build/build_config.h" 7 #include "build/build_config.h"
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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 return NULL; 674 return NULL;
675 } 675 }
676 676
677 net::URLRequestContextGetter* TestingProfile::GetRequestContextForIsolatedApp( 677 net::URLRequestContextGetter* TestingProfile::GetRequestContextForIsolatedApp(
678 const std::string& app_id) { 678 const std::string& app_id) {
679 // We don't test isolated app storage here yet, so returning the same dummy 679 // We don't test isolated app storage here yet, so returning the same dummy
680 // context is sufficient for now. 680 // context is sufficient for now.
681 return GetRequestContext(); 681 return GetRequestContext();
682 } 682 }
683 683
684 const content::ResourceContext& TestingProfile::GetResourceContext() { 684 content::ResourceContext* TestingProfile::GetResourceContext() {
685 return *content::MockResourceContext::GetInstance(); 685 return content::MockResourceContext::GetInstance();
686 } 686 }
687 687
688 HostContentSettingsMap* TestingProfile::GetHostContentSettingsMap() { 688 HostContentSettingsMap* TestingProfile::GetHostContentSettingsMap() {
689 if (!host_content_settings_map_.get()) { 689 if (!host_content_settings_map_.get()) {
690 host_content_settings_map_ = new HostContentSettingsMap( 690 host_content_settings_map_ = new HostContentSettingsMap(
691 GetPrefs(), GetExtensionService(), false); 691 GetPrefs(), GetExtensionService(), false);
692 } 692 }
693 return host_content_settings_map_.get(); 693 return host_content_settings_map_.get();
694 } 694 }
695 695
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { 829 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() {
830 return GetExtensionSpecialStoragePolicy(); 830 return GetExtensionSpecialStoragePolicy();
831 } 831 }
832 832
833 void TestingProfile::DestroyWebDataService() { 833 void TestingProfile::DestroyWebDataService() {
834 if (!web_data_service_.get()) 834 if (!web_data_service_.get())
835 return; 835 return;
836 836
837 web_data_service_->Shutdown(); 837 web_data_service_->Shutdown();
838 } 838 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | content/browser/appcache/chrome_appcache_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698