Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: chrome/test/base/testing_profile.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698