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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 | 540 |
541 net::URLRequestContextGetter* TestingProfile::GetRequestContext() { | 541 net::URLRequestContextGetter* TestingProfile::GetRequestContext() { |
542 return request_context_.get(); | 542 return request_context_.get(); |
543 } | 543 } |
544 | 544 |
545 net::URLRequestContextGetter* TestingProfile::GetRequestContextForRenderProcess( | 545 net::URLRequestContextGetter* TestingProfile::GetRequestContextForRenderProcess( |
546 int renderer_child_id) { | 546 int renderer_child_id) { |
547 ExtensionService* extension_service = | 547 ExtensionService* extension_service = |
548 ExtensionSystem::Get(this)->extension_service(); | 548 ExtensionSystem::Get(this)->extension_service(); |
549 if (extension_service) { | 549 if (extension_service) { |
550 const Extension* installed_app = extension_service-> | 550 const extensions::Extension* installed_app = extension_service-> |
551 GetInstalledAppForRenderer(renderer_child_id); | 551 GetInstalledAppForRenderer(renderer_child_id); |
552 if (installed_app != NULL && installed_app->is_storage_isolated()) | 552 if (installed_app != NULL && installed_app->is_storage_isolated()) |
553 return GetRequestContextForIsolatedApp(installed_app->id()); | 553 return GetRequestContextForIsolatedApp(installed_app->id()); |
554 } | 554 } |
555 | 555 |
556 return GetRequestContext(); | 556 return GetRequestContext(); |
557 } | 557 } |
558 | 558 |
559 void TestingProfile::CreateRequestContext() { | 559 void TestingProfile::CreateRequestContext() { |
560 if (!request_context_) | 560 if (!request_context_) |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 } | 712 } |
713 | 713 |
714 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { | 714 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { |
715 return true; | 715 return true; |
716 } | 716 } |
717 | 717 |
718 base::Callback<ChromeURLDataManagerBackend*(void)> | 718 base::Callback<ChromeURLDataManagerBackend*(void)> |
719 TestingProfile::GetChromeURLDataManagerBackendGetter() const { | 719 TestingProfile::GetChromeURLDataManagerBackendGetter() const { |
720 return base::Callback<ChromeURLDataManagerBackend*(void)>(); | 720 return base::Callback<ChromeURLDataManagerBackend*(void)>(); |
721 } | 721 } |
OLD | NEW |