OLD | NEW |
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/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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 } | 548 } |
549 | 549 |
550 void TestingProfile::SetQuotaManager(quota::QuotaManager* manager) { | 550 void TestingProfile::SetQuotaManager(quota::QuotaManager* manager) { |
551 quota_manager_ = manager; | 551 quota_manager_ = manager; |
552 } | 552 } |
553 | 553 |
554 quota::QuotaManager* TestingProfile::GetQuotaManager() { | 554 quota::QuotaManager* TestingProfile::GetQuotaManager() { |
555 return quota_manager_.get(); | 555 return quota_manager_.get(); |
556 } | 556 } |
557 | 557 |
558 BrowserSignin* TestingProfile::GetBrowserSignin() { | |
559 return NULL; | |
560 } | |
561 | |
562 bool TestingProfile::HasCreatedDownloadManager() const { | 558 bool TestingProfile::HasCreatedDownloadManager() const { |
563 return false; | 559 return false; |
564 } | 560 } |
565 | 561 |
566 net::URLRequestContextGetter* TestingProfile::GetRequestContext() { | 562 net::URLRequestContextGetter* TestingProfile::GetRequestContext() { |
567 return request_context_.get(); | 563 return request_context_.get(); |
568 } | 564 } |
569 | 565 |
570 net::URLRequestContextGetter* TestingProfile::GetRequestContextForRenderProcess( | 566 net::URLRequestContextGetter* TestingProfile::GetRequestContextForRenderProcess( |
571 int renderer_child_id) { | 567 int renderer_child_id) { |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 778 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
783 return GetExtensionSpecialStoragePolicy(); | 779 return GetExtensionSpecialStoragePolicy(); |
784 } | 780 } |
785 | 781 |
786 void TestingProfile::DestroyWebDataService() { | 782 void TestingProfile::DestroyWebDataService() { |
787 if (!web_data_service_.get()) | 783 if (!web_data_service_.get()) |
788 return; | 784 return; |
789 | 785 |
790 web_data_service_->Shutdown(); | 786 web_data_service_->Shutdown(); |
791 } | 787 } |
OLD | NEW |