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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 | 529 |
530 net::URLRequestContextGetter* TestingProfile::GetRequestContext() { | 530 net::URLRequestContextGetter* TestingProfile::GetRequestContext() { |
531 return request_context_.get(); | 531 return request_context_.get(); |
532 } | 532 } |
533 | 533 |
534 net::URLRequestContextGetter* TestingProfile::GetRequestContextForRenderProcess( | 534 net::URLRequestContextGetter* TestingProfile::GetRequestContextForRenderProcess( |
535 int renderer_child_id) { | 535 int renderer_child_id) { |
536 ExtensionService* extension_service = | 536 ExtensionService* extension_service = |
537 ExtensionSystem::Get(this)->extension_service(); | 537 ExtensionSystem::Get(this)->extension_service(); |
538 if (extension_service) { | 538 if (extension_service) { |
539 const Extension* installed_app = extension_service-> | 539 const extensions::Extension* installed_app = extension_service-> |
540 GetInstalledAppForRenderer(renderer_child_id); | 540 GetInstalledAppForRenderer(renderer_child_id); |
541 if (installed_app != NULL && installed_app->is_storage_isolated()) | 541 if (installed_app != NULL && installed_app->is_storage_isolated()) |
542 return GetRequestContextForIsolatedApp(installed_app->id()); | 542 return GetRequestContextForIsolatedApp(installed_app->id()); |
543 } | 543 } |
544 | 544 |
545 return GetRequestContext(); | 545 return GetRequestContext(); |
546 } | 546 } |
547 | 547 |
548 void TestingProfile::CreateRequestContext() { | 548 void TestingProfile::CreateRequestContext() { |
549 if (!request_context_) | 549 if (!request_context_) |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 } | 694 } |
695 | 695 |
696 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { | 696 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { |
697 return true; | 697 return true; |
698 } | 698 } |
699 | 699 |
700 base::Callback<ChromeURLDataManagerBackend*(void)> | 700 base::Callback<ChromeURLDataManagerBackend*(void)> |
701 TestingProfile::GetChromeURLDataManagerBackendGetter() const { | 701 TestingProfile::GetChromeURLDataManagerBackendGetter() const { |
702 return base::Callback<ChromeURLDataManagerBackend*(void)>(); | 702 return base::Callback<ChromeURLDataManagerBackend*(void)>(); |
703 } | 703 } |
OLD | NEW |