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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 return this; | 390 return this; |
391 } | 391 } |
392 | 392 |
393 ChromeAppCacheService* TestingProfile::GetAppCacheService() { | 393 ChromeAppCacheService* TestingProfile::GetAppCacheService() { |
394 return NULL; | 394 return NULL; |
395 } | 395 } |
396 | 396 |
397 webkit_database::DatabaseTracker* TestingProfile::GetDatabaseTracker() { | 397 webkit_database::DatabaseTracker* TestingProfile::GetDatabaseTracker() { |
398 if (!db_tracker_) { | 398 if (!db_tracker_) { |
399 db_tracker_ = new webkit_database::DatabaseTracker( | 399 db_tracker_ = new webkit_database::DatabaseTracker( |
400 GetPath(), false, GetExtensionSpecialStoragePolicy(), NULL, NULL); | 400 GetPath(), false, false, GetExtensionSpecialStoragePolicy(), |
| 401 NULL, NULL); |
401 } | 402 } |
402 return db_tracker_; | 403 return db_tracker_; |
403 } | 404 } |
404 | 405 |
405 VisitedLinkMaster* TestingProfile::GetVisitedLinkMaster() { | 406 VisitedLinkMaster* TestingProfile::GetVisitedLinkMaster() { |
406 return NULL; | 407 return NULL; |
407 } | 408 } |
408 | 409 |
409 ExtensionService* TestingProfile::GetExtensionService() { | 410 ExtensionService* TestingProfile::GetExtensionService() { |
410 return extension_service_.get(); | 411 return extension_service_.get(); |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 } | 786 } |
786 | 787 |
787 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) | 788 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) |
788 : original_profile_(profile) {} | 789 : original_profile_(profile) {} |
789 | 790 |
790 DerivedTestingProfile::~DerivedTestingProfile() {} | 791 DerivedTestingProfile::~DerivedTestingProfile() {} |
791 | 792 |
792 ProfileId DerivedTestingProfile::GetRuntimeId() { | 793 ProfileId DerivedTestingProfile::GetRuntimeId() { |
793 return original_profile_->GetRuntimeId(); | 794 return original_profile_->GetRuntimeId(); |
794 } | 795 } |
OLD | NEW |