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

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

Issue 6693054: Get rid of extensions dependency from content\browser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/testing_profile.h ('k') | chrome/test/unit/chrome_test_suite.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) 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/test/testing_profile.h" 5 #include "chrome/test/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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 return NULL; 789 return NULL;
790 if (!prerender_manager_) 790 if (!prerender_manager_)
791 prerender_manager_ = new prerender::PrerenderManager(this); 791 prerender_manager_ = new prerender::PrerenderManager(this);
792 return prerender_manager_; 792 return prerender_manager_;
793 } 793 }
794 794
795 PrefService* TestingProfile::GetOffTheRecordPrefs() { 795 PrefService* TestingProfile::GetOffTheRecordPrefs() {
796 return NULL; 796 return NULL;
797 } 797 }
798 798
799 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() {
800 return GetExtensionSpecialStoragePolicy();
801 }
802
799 void TestingProfile::DestroyWebDataService() { 803 void TestingProfile::DestroyWebDataService() {
800 if (!web_data_service_.get()) 804 if (!web_data_service_.get())
801 return; 805 return;
802 806
803 web_data_service_->Shutdown(); 807 web_data_service_->Shutdown();
804 } 808 }
805 809
806 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) 810 DerivedTestingProfile::DerivedTestingProfile(Profile* profile)
807 : original_profile_(profile) {} 811 : original_profile_(profile) {}
808 812
809 DerivedTestingProfile::~DerivedTestingProfile() {} 813 DerivedTestingProfile::~DerivedTestingProfile() {}
810 814
811 ProfileId DerivedTestingProfile::GetRuntimeId() { 815 ProfileId DerivedTestingProfile::GetRuntimeId() {
812 return original_profile_->GetRuntimeId(); 816 return original_profile_->GetRuntimeId();
813 } 817 }
OLDNEW
« no previous file with comments | « chrome/test/testing_profile.h ('k') | chrome/test/unit/chrome_test_suite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698