| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/base/testing_profile.h" | 5 #include "chrome/test/base/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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 } | 432 } |
| 433 | 433 |
| 434 TestingProfile* TestingProfile::AsTestingProfile() { | 434 TestingProfile* TestingProfile::AsTestingProfile() { |
| 435 return this; | 435 return this; |
| 436 } | 436 } |
| 437 | 437 |
| 438 std::string TestingProfile::GetProfileName() { | 438 std::string TestingProfile::GetProfileName() { |
| 439 return std::string("testing_profile"); | 439 return std::string("testing_profile"); |
| 440 } | 440 } |
| 441 | 441 |
| 442 bool TestingProfile::IsOffTheRecord() { | 442 bool TestingProfile::IsOffTheRecord() const { |
| 443 return incognito_; | 443 return incognito_; |
| 444 } | 444 } |
| 445 | 445 |
| 446 void TestingProfile::SetOffTheRecordProfile(Profile* profile) { | 446 void TestingProfile::SetOffTheRecordProfile(Profile* profile) { |
| 447 incognito_profile_.reset(profile); | 447 incognito_profile_.reset(profile); |
| 448 } | 448 } |
| 449 | 449 |
| 450 Profile* TestingProfile::GetOffTheRecordProfile() { | 450 Profile* TestingProfile::GetOffTheRecordProfile() { |
| 451 return incognito_profile_.get(); | 451 return incognito_profile_.get(); |
| 452 } | 452 } |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 759 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
| 760 return GetExtensionSpecialStoragePolicy(); | 760 return GetExtensionSpecialStoragePolicy(); |
| 761 } | 761 } |
| 762 | 762 |
| 763 void TestingProfile::DestroyWebDataService() { | 763 void TestingProfile::DestroyWebDataService() { |
| 764 if (!web_data_service_.get()) | 764 if (!web_data_service_.get()) |
| 765 return; | 765 return; |
| 766 | 766 |
| 767 web_data_service_->Shutdown(); | 767 web_data_service_->Shutdown(); |
| 768 } | 768 } |
| OLD | NEW |