| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 } | 384 } |
| 385 | 385 |
| 386 bool TestingProfile::HasOffTheRecordProfile() { | 386 bool TestingProfile::HasOffTheRecordProfile() { |
| 387 return incognito_profile_.get() != NULL; | 387 return incognito_profile_.get() != NULL; |
| 388 } | 388 } |
| 389 | 389 |
| 390 Profile* TestingProfile::GetOriginalProfile() { | 390 Profile* TestingProfile::GetOriginalProfile() { |
| 391 return this; | 391 return this; |
| 392 } | 392 } |
| 393 | 393 |
| 394 bool TestingProfile::SafeBrowsingEnabled() { |
| 395 return false; |
| 396 } |
| 397 |
| 394 ChromeAppCacheService* TestingProfile::GetAppCacheService() { | 398 ChromeAppCacheService* TestingProfile::GetAppCacheService() { |
| 395 return NULL; | 399 return NULL; |
| 396 } | 400 } |
| 397 | 401 |
| 398 webkit_database::DatabaseTracker* TestingProfile::GetDatabaseTracker() { | 402 webkit_database::DatabaseTracker* TestingProfile::GetDatabaseTracker() { |
| 399 if (!db_tracker_) { | 403 if (!db_tracker_) { |
| 400 db_tracker_ = new webkit_database::DatabaseTracker( | 404 db_tracker_ = new webkit_database::DatabaseTracker( |
| 401 GetPath(), false, GetExtensionSpecialStoragePolicy(), NULL, NULL); | 405 GetPath(), false, GetExtensionSpecialStoragePolicy(), NULL, NULL); |
| 402 } | 406 } |
| 403 return db_tracker_; | 407 return db_tracker_; |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 } | 796 } |
| 793 | 797 |
| 794 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) | 798 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) |
| 795 : original_profile_(profile) {} | 799 : original_profile_(profile) {} |
| 796 | 800 |
| 797 DerivedTestingProfile::~DerivedTestingProfile() {} | 801 DerivedTestingProfile::~DerivedTestingProfile() {} |
| 798 | 802 |
| 799 ProfileId DerivedTestingProfile::GetRuntimeId() { | 803 ProfileId DerivedTestingProfile::GetRuntimeId() { |
| 800 return original_profile_->GetRuntimeId(); | 804 return original_profile_->GetRuntimeId(); |
| 801 } | 805 } |
| OLD | NEW |