| 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/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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 | 654 |
| 655 SpellCheckHost* TestingProfile::GetSpellCheckHost() { | 655 SpellCheckHost* TestingProfile::GetSpellCheckHost() { |
| 656 return NULL; | 656 return NULL; |
| 657 } | 657 } |
| 658 | 658 |
| 659 WebKitContext* TestingProfile::GetWebKitContext() { | 659 WebKitContext* TestingProfile::GetWebKitContext() { |
| 660 if (webkit_context_ == NULL) { | 660 if (webkit_context_ == NULL) { |
| 661 webkit_context_ = new WebKitContext( | 661 webkit_context_ = new WebKitContext( |
| 662 IsOffTheRecord(), GetPath(), | 662 IsOffTheRecord(), GetPath(), |
| 663 GetExtensionSpecialStoragePolicy(), | 663 GetExtensionSpecialStoragePolicy(), |
| 664 false); | 664 false, NULL, NULL); |
| 665 } | 665 } |
| 666 return webkit_context_; | 666 return webkit_context_; |
| 667 } | 667 } |
| 668 | 668 |
| 669 WebKitContext* TestingProfile::GetOffTheRecordWebKitContext() { | 669 WebKitContext* TestingProfile::GetOffTheRecordWebKitContext() { |
| 670 return NULL; | 670 return NULL; |
| 671 } | 671 } |
| 672 | 672 |
| 673 NTPResourceCache* TestingProfile::GetNTPResourceCache() { | 673 NTPResourceCache* TestingProfile::GetNTPResourceCache() { |
| 674 if (!ntp_resource_cache_.get()) | 674 if (!ntp_resource_cache_.get()) |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 } | 773 } |
| 774 | 774 |
| 775 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) | 775 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) |
| 776 : original_profile_(profile) {} | 776 : original_profile_(profile) {} |
| 777 | 777 |
| 778 DerivedTestingProfile::~DerivedTestingProfile() {} | 778 DerivedTestingProfile::~DerivedTestingProfile() {} |
| 779 | 779 |
| 780 ProfileId DerivedTestingProfile::GetRuntimeId() { | 780 ProfileId DerivedTestingProfile::GetRuntimeId() { |
| 781 return original_profile_->GetRuntimeId(); | 781 return original_profile_->GetRuntimeId(); |
| 782 } | 782 } |
| OLD | NEW |