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

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

Issue 10626007: Move ExtensionSystem into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 439
440 Profile* TestingProfile::GetOriginalProfile() { 440 Profile* TestingProfile::GetOriginalProfile() {
441 return this; 441 return this;
442 } 442 }
443 443
444 VisitedLinkMaster* TestingProfile::GetVisitedLinkMaster() { 444 VisitedLinkMaster* TestingProfile::GetVisitedLinkMaster() {
445 return NULL; 445 return NULL;
446 } 446 }
447 447
448 ExtensionService* TestingProfile::GetExtensionService() { 448 ExtensionService* TestingProfile::GetExtensionService() {
449 return ExtensionSystem::Get(this)->extension_service(); 449 return extensions::ExtensionSystem::Get(this)->extension_service();
450 } 450 }
451 451
452 UserScriptMaster* TestingProfile::GetUserScriptMaster() { 452 UserScriptMaster* TestingProfile::GetUserScriptMaster() {
453 return ExtensionSystem::Get(this)->user_script_master(); 453 return extensions::ExtensionSystem::Get(this)->user_script_master();
454 } 454 }
455 455
456 ExtensionProcessManager* TestingProfile::GetExtensionProcessManager() { 456 ExtensionProcessManager* TestingProfile::GetExtensionProcessManager() {
457 return ExtensionSystem::Get(this)->process_manager(); 457 return extensions::ExtensionSystem::Get(this)->process_manager();
458 } 458 }
459 459
460 ExtensionEventRouter* TestingProfile::GetExtensionEventRouter() { 460 ExtensionEventRouter* TestingProfile::GetExtensionEventRouter() {
461 return ExtensionSystem::Get(this)->event_router(); 461 return extensions::ExtensionSystem::Get(this)->event_router();
462 } 462 }
463 463
464 void TestingProfile::SetExtensionSpecialStoragePolicy( 464 void TestingProfile::SetExtensionSpecialStoragePolicy(
465 ExtensionSpecialStoragePolicy* extension_special_storage_policy) { 465 ExtensionSpecialStoragePolicy* extension_special_storage_policy) {
466 extension_special_storage_policy_ = extension_special_storage_policy; 466 extension_special_storage_policy_ = extension_special_storage_policy;
467 } 467 }
468 468
469 ExtensionSpecialStoragePolicy* 469 ExtensionSpecialStoragePolicy*
470 TestingProfile::GetExtensionSpecialStoragePolicy() { 470 TestingProfile::GetExtensionSpecialStoragePolicy() {
471 if (!extension_special_storage_policy_.get()) 471 if (!extension_special_storage_policy_.get())
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 return NULL; 547 return NULL;
548 } 548 }
549 549
550 net::URLRequestContextGetter* TestingProfile::GetRequestContext() { 550 net::URLRequestContextGetter* TestingProfile::GetRequestContext() {
551 return request_context_.get(); 551 return request_context_.get();
552 } 552 }
553 553
554 net::URLRequestContextGetter* TestingProfile::GetRequestContextForRenderProcess( 554 net::URLRequestContextGetter* TestingProfile::GetRequestContextForRenderProcess(
555 int renderer_child_id) { 555 int renderer_child_id) {
556 ExtensionService* extension_service = 556 ExtensionService* extension_service =
557 ExtensionSystem::Get(this)->extension_service(); 557 extensions::ExtensionSystem::Get(this)->extension_service();
558 if (extension_service) { 558 if (extension_service) {
559 const extensions::Extension* installed_app = extension_service-> 559 const extensions::Extension* installed_app = extension_service->
560 GetInstalledAppForRenderer(renderer_child_id); 560 GetInstalledAppForRenderer(renderer_child_id);
561 if (installed_app != NULL && installed_app->is_storage_isolated()) 561 if (installed_app != NULL && installed_app->is_storage_isolated())
562 return GetRequestContextForIsolatedApp(installed_app->id()); 562 return GetRequestContextForIsolatedApp(installed_app->id());
563 } 563 }
564 564
565 return GetRequestContext(); 565 return GetRequestContext();
566 } 566 }
567 567
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 } 715 }
716 716
717 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { 717 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) {
718 return true; 718 return true;
719 } 719 }
720 720
721 base::Callback<ChromeURLDataManagerBackend*(void)> 721 base::Callback<ChromeURLDataManagerBackend*(void)>
722 TestingProfile::GetChromeURLDataManagerBackendGetter() const { 722 TestingProfile::GetChromeURLDataManagerBackendGetter() const {
723 return base::Callback<ChromeURLDataManagerBackend*(void)>(); 723 return base::Callback<ChromeURLDataManagerBackend*(void)>();
724 } 724 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698