| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 } | 466 } |
| 467 return geolocation_permission_context_.get(); | 467 return geolocation_permission_context_.get(); |
| 468 } | 468 } |
| 469 | 469 |
| 470 void TestingProfile::set_session_service(SessionService* session_service) { | 470 void TestingProfile::set_session_service(SessionService* session_service) { |
| 471 session_service_ = session_service; | 471 session_service_ = session_service; |
| 472 } | 472 } |
| 473 | 473 |
| 474 WebKitContext* TestingProfile::GetWebKitContext() { | 474 WebKitContext* TestingProfile::GetWebKitContext() { |
| 475 if (webkit_context_ == NULL) | 475 if (webkit_context_ == NULL) |
| 476 webkit_context_ = new WebKitContext(this); | 476 webkit_context_ = new WebKitContext(this, false); |
| 477 return webkit_context_; | 477 return webkit_context_; |
| 478 } | 478 } |
| 479 | 479 |
| 480 NTPResourceCache* TestingProfile::GetNTPResourceCache() { | 480 NTPResourceCache* TestingProfile::GetNTPResourceCache() { |
| 481 if (!ntp_resource_cache_.get()) | 481 if (!ntp_resource_cache_.get()) |
| 482 ntp_resource_cache_.reset(new NTPResourceCache(this)); | 482 ntp_resource_cache_.reset(new NTPResourceCache(this)); |
| 483 return ntp_resource_cache_.get(); | 483 return ntp_resource_cache_.get(); |
| 484 } | 484 } |
| 485 | 485 |
| 486 DesktopNotificationService* TestingProfile::GetDesktopNotificationService() { | 486 DesktopNotificationService* TestingProfile::GetDesktopNotificationService() { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 } | 530 } |
| 531 return profile_sync_service_.get(); | 531 return profile_sync_service_.get(); |
| 532 } | 532 } |
| 533 | 533 |
| 534 void TestingProfile::DestroyWebDataService() { | 534 void TestingProfile::DestroyWebDataService() { |
| 535 if (!web_data_service_.get()) | 535 if (!web_data_service_.get()) |
| 536 return; | 536 return; |
| 537 | 537 |
| 538 web_data_service_->Shutdown(); | 538 web_data_service_->Shutdown(); |
| 539 } | 539 } |
| OLD | NEW |