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

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

Issue 9764006: Make ExtensionPrefValueMap a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: -- Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | no next file » | 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"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/message_loop_proxy.h" 12 #include "base/message_loop_proxy.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/string_number_conversions.h" 14 #include "base/string_number_conversions.h"
15 #include "chrome/browser/autocomplete/autocomplete_classifier.h" 15 #include "chrome/browser/autocomplete/autocomplete_classifier.h"
16 #include "chrome/browser/bookmarks/bookmark_model.h" 16 #include "chrome/browser/bookmarks/bookmark_model.h"
17 #include "chrome/browser/browser_process.h" 17 #include "chrome/browser/browser_process.h"
18 #include "chrome/browser/content_settings/host_content_settings_map.h" 18 #include "chrome/browser/content_settings/host_content_settings_map.h"
19 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 19 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
20 #include "chrome/browser/extensions/extension_pref_value_map.h"
21 #include "chrome/browser/extensions/extension_service.h" 20 #include "chrome/browser/extensions/extension_service.h"
22 #include "chrome/browser/extensions/extension_special_storage_policy.h" 21 #include "chrome/browser/extensions/extension_special_storage_policy.h"
23 #include "chrome/browser/extensions/extension_system.h" 22 #include "chrome/browser/extensions/extension_system.h"
24 #include "chrome/browser/extensions/extension_system_factory.h" 23 #include "chrome/browser/extensions/extension_system_factory.h"
25 #include "chrome/browser/extensions/test_extension_system.h" 24 #include "chrome/browser/extensions/test_extension_system.h"
26 #include "chrome/browser/favicon/favicon_service.h" 25 #include "chrome/browser/favicon/favicon_service.h"
27 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" 26 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h"
28 #include "chrome/browser/history/history.h" 27 #include "chrome/browser/history/history.h"
29 #include "chrome/browser/history/history_backend.h" 28 #include "chrome/browser/history/history_backend.h"
30 #include "chrome/browser/history/top_sites.h" 29 #include "chrome/browser/history/top_sites.h"
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 } 427 }
429 428
430 Profile* TestingProfile::GetOriginalProfile() { 429 Profile* TestingProfile::GetOriginalProfile() {
431 return this; 430 return this;
432 } 431 }
433 432
434 VisitedLinkMaster* TestingProfile::GetVisitedLinkMaster() { 433 VisitedLinkMaster* TestingProfile::GetVisitedLinkMaster() {
435 return NULL; 434 return NULL;
436 } 435 }
437 436
438 ExtensionPrefValueMap* TestingProfile::GetExtensionPrefValueMap() {
439 return NULL;
440 }
441
442 ExtensionService* TestingProfile::GetExtensionService() { 437 ExtensionService* TestingProfile::GetExtensionService() {
443 return ExtensionSystem::Get(this)->extension_service(); 438 return ExtensionSystem::Get(this)->extension_service();
444 } 439 }
445 440
446 UserScriptMaster* TestingProfile::GetUserScriptMaster() { 441 UserScriptMaster* TestingProfile::GetUserScriptMaster() {
447 return ExtensionSystem::Get(this)->user_script_master(); 442 return ExtensionSystem::Get(this)->user_script_master();
448 } 443 }
449 444
450 ExtensionProcessManager* TestingProfile::GetExtensionProcessManager() { 445 ExtensionProcessManager* TestingProfile::GetExtensionProcessManager() {
451 return ExtensionSystem::Get(this)->process_manager(); 446 return ExtensionSystem::Get(this)->process_manager();
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 void TestingProfile::DestroyWebDataService() { 717 void TestingProfile::DestroyWebDataService() {
723 if (!web_data_service_.get()) 718 if (!web_data_service_.get())
724 return; 719 return;
725 720
726 web_data_service_->Shutdown(); 721 web_data_service_->Shutdown();
727 } 722 }
728 723
729 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { 724 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) {
730 return true; 725 return true;
731 } 726 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698