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

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

Issue 11232066: Remove GetExtensionEventRouter from Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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 | Annotate | Revision Log
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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 } 517 }
518 518
519 ExtensionService* TestingProfile::GetExtensionService() { 519 ExtensionService* TestingProfile::GetExtensionService() {
520 return extensions::ExtensionSystem::Get(this)->extension_service(); 520 return extensions::ExtensionSystem::Get(this)->extension_service();
521 } 521 }
522 522
523 extensions::UserScriptMaster* TestingProfile::GetUserScriptMaster() { 523 extensions::UserScriptMaster* TestingProfile::GetUserScriptMaster() {
524 return extensions::ExtensionSystem::Get(this)->user_script_master(); 524 return extensions::ExtensionSystem::Get(this)->user_script_master();
525 } 525 }
526 526
527 extensions::EventRouter* TestingProfile::GetExtensionEventRouter() {
528 return extensions::ExtensionSystem::Get(this)->event_router();
529 }
530
531 void TestingProfile::SetExtensionSpecialStoragePolicy( 527 void TestingProfile::SetExtensionSpecialStoragePolicy(
532 ExtensionSpecialStoragePolicy* extension_special_storage_policy) { 528 ExtensionSpecialStoragePolicy* extension_special_storage_policy) {
533 extension_special_storage_policy_ = extension_special_storage_policy; 529 extension_special_storage_policy_ = extension_special_storage_policy;
534 } 530 }
535 531
536 ExtensionSpecialStoragePolicy* 532 ExtensionSpecialStoragePolicy*
537 TestingProfile::GetExtensionSpecialStoragePolicy() { 533 TestingProfile::GetExtensionSpecialStoragePolicy() {
538 if (!extension_special_storage_policy_.get()) 534 if (!extension_special_storage_policy_.get())
539 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(NULL); 535 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(NULL);
540 return extension_special_storage_policy_.get(); 536 return extension_special_storage_policy_.get();
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() { 835 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() {
840 DCHECK(!build_called_); 836 DCHECK(!build_called_);
841 build_called_ = true; 837 build_called_ = true;
842 return scoped_ptr<TestingProfile>(new TestingProfile( 838 return scoped_ptr<TestingProfile>(new TestingProfile(
843 path_, 839 path_,
844 delegate_, 840 delegate_,
845 extension_policy_, 841 extension_policy_,
846 pref_service_.Pass(), 842 pref_service_.Pass(),
847 user_cloud_policy_manager_.Pass())); 843 user_cloud_policy_manager_.Pass()));
848 } 844 }
OLDNEW
« chrome/browser/extensions/menu_manager_unittest.cc ('K') | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698