| 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 | 683 |
| 684 SpellCheckHost* TestingProfile::GetSpellCheckHost() { | 684 SpellCheckHost* TestingProfile::GetSpellCheckHost() { |
| 685 return NULL; | 685 return NULL; |
| 686 } | 686 } |
| 687 | 687 |
| 688 WebKitContext* TestingProfile::GetWebKitContext() { | 688 WebKitContext* TestingProfile::GetWebKitContext() { |
| 689 if (webkit_context_ == NULL) { | 689 if (webkit_context_ == NULL) { |
| 690 webkit_context_ = new WebKitContext( | 690 webkit_context_ = new WebKitContext( |
| 691 IsOffTheRecord(), GetPath(), | 691 IsOffTheRecord(), GetPath(), |
| 692 GetExtensionSpecialStoragePolicy(), | 692 GetExtensionSpecialStoragePolicy(), |
| 693 GetResourceContext(), |
| 693 false, NULL, NULL); | 694 false, NULL, NULL); |
| 694 } | 695 } |
| 695 return webkit_context_; | 696 return webkit_context_; |
| 696 } | 697 } |
| 697 | 698 |
| 698 WebKitContext* TestingProfile::GetOffTheRecordWebKitContext() { | 699 WebKitContext* TestingProfile::GetOffTheRecordWebKitContext() { |
| 699 return NULL; | 700 return NULL; |
| 700 } | 701 } |
| 701 | 702 |
| 702 FilePath TestingProfile::last_selected_directory() { | 703 FilePath TestingProfile::last_selected_directory() { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 788 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
| 788 return GetExtensionSpecialStoragePolicy(); | 789 return GetExtensionSpecialStoragePolicy(); |
| 789 } | 790 } |
| 790 | 791 |
| 791 void TestingProfile::DestroyWebDataService() { | 792 void TestingProfile::DestroyWebDataService() { |
| 792 if (!web_data_service_.get()) | 793 if (!web_data_service_.get()) |
| 793 return; | 794 return; |
| 794 | 795 |
| 795 web_data_service_->Shutdown(); | 796 web_data_service_->Shutdown(); |
| 796 } | 797 } |
| OLD | NEW |