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

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

Issue 10698111: browser: Move more files into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/testing_pref_service.cc ('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/run_loop.h" 14 #include "base/run_loop.h"
15 #include "base/string_number_conversions.h" 15 #include "base/string_number_conversions.h"
16 #include "chrome/browser/autocomplete/autocomplete_classifier.h" 16 #include "chrome/browser/autocomplete/autocomplete_classifier.h"
17 #include "chrome/browser/bookmarks/bookmark_model.h" 17 #include "chrome/browser/bookmarks/bookmark_model.h"
18 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 18 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
19 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
20 #include "chrome/browser/content_settings/host_content_settings_map.h" 20 #include "chrome/browser/content_settings/host_content_settings_map.h"
21 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 21 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
22 #include "chrome/browser/extensions/extension_service.h" 22 #include "chrome/browser/extensions/extension_service.h"
23 #include "chrome/browser/extensions/extension_special_storage_policy.h" 23 #include "chrome/browser/extensions/extension_special_storage_policy.h"
24 #include "chrome/browser/extensions/extension_system.h" 24 #include "chrome/browser/extensions/extension_system.h"
25 #include "chrome/browser/extensions/extension_system_factory.h" 25 #include "chrome/browser/extensions/extension_system_factory.h"
26 #include "chrome/browser/extensions/test_extension_system.h" 26 #include "chrome/browser/extensions/test_extension_system.h"
27 #include "chrome/browser/favicon/favicon_service.h" 27 #include "chrome/browser/favicon/favicon_service.h"
28 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" 28 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h"
29 #include "chrome/browser/history/shortcuts_backend.h"
30 #include "chrome/browser/history/shortcuts_backend_factory.h"
31 #include "chrome/browser/history/history.h" 29 #include "chrome/browser/history/history.h"
32 #include "chrome/browser/history/history_backend.h" 30 #include "chrome/browser/history/history_backend.h"
33 #include "chrome/browser/history/history_service_factory.h" 31 #include "chrome/browser/history/history_service_factory.h"
32 #include "chrome/browser/history/shortcuts_backend.h"
33 #include "chrome/browser/history/shortcuts_backend_factory.h"
34 #include "chrome/browser/history/top_sites.h" 34 #include "chrome/browser/history/top_sites.h"
35 #include "chrome/browser/net/proxy_service_factory.h" 35 #include "chrome/browser/net/proxy_service_factory.h"
36 #include "chrome/browser/notifications/desktop_notification_service.h" 36 #include "chrome/browser/notifications/desktop_notification_service.h"
37 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 37 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
38 #include "chrome/browser/prefs/browser_prefs.h" 38 #include "chrome/browser/prefs/browser_prefs.h"
39 #include "chrome/browser/prefs/testing_pref_store.h" 39 #include "chrome/browser/prefs/testing_pref_store.h"
40 #include "chrome/browser/prerender/prerender_manager.h" 40 #include "chrome/browser/prerender/prerender_manager.h"
41 #include "chrome/browser/profiles/profile_dependency_manager.h" 41 #include "chrome/browser/profiles/profile_dependency_manager.h"
42 #include "chrome/browser/protector/protector_service_factory.h" 42 #include "chrome/browser/protector/protector_service_factory.h"
43 #include "chrome/browser/search_engines/template_url_fetcher_factory.h" 43 #include "chrome/browser/search_engines/template_url_fetcher_factory.h"
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 SetTestingFactory(this, NULL); 516 SetTestingFactory(this, NULL);
517 #endif 517 #endif
518 prefs_.reset(prefs); 518 prefs_.reset(prefs);
519 } 519 }
520 520
521 void TestingProfile::CreateTestingPrefService() { 521 void TestingProfile::CreateTestingPrefService() {
522 DCHECK(!prefs_.get()); 522 DCHECK(!prefs_.get());
523 testing_prefs_ = new TestingPrefService(); 523 testing_prefs_ = new TestingPrefService();
524 prefs_.reset(testing_prefs_); 524 prefs_.reset(testing_prefs_);
525 Profile::RegisterUserPrefs(prefs_.get()); 525 Profile::RegisterUserPrefs(prefs_.get());
526 browser::RegisterUserPrefs(prefs_.get()); 526 chrome::RegisterUserPrefs(prefs_.get());
527 } 527 }
528 528
529 PrefService* TestingProfile::GetPrefs() { 529 PrefService* TestingProfile::GetPrefs() {
530 if (!prefs_.get()) { 530 if (!prefs_.get()) {
531 CreateTestingPrefService(); 531 CreateTestingPrefService();
532 } 532 }
533 return prefs_.get(); 533 return prefs_.get();
534 } 534 }
535 535
536 history::TopSites* TestingProfile::GetTopSites() { 536 history::TopSites* TestingProfile::GetTopSites() {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 } 713 }
714 714
715 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { 715 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) {
716 return true; 716 return true;
717 } 717 }
718 718
719 base::Callback<ChromeURLDataManagerBackend*(void)> 719 base::Callback<ChromeURLDataManagerBackend*(void)>
720 TestingProfile::GetChromeURLDataManagerBackendGetter() const { 720 TestingProfile::GetChromeURLDataManagerBackendGetter() const {
721 return base::Callback<ChromeURLDataManagerBackend*(void)>(); 721 return base::Callback<ChromeURLDataManagerBackend*(void)>();
722 } 722 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_pref_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698