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

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

Issue 6461024: Revert 74292 - Splits ChromeURLDataManager into 2 chunks:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/testing_profile.h" 5 #include "chrome/test/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_thread.h" 17 #include "chrome/browser/browser_thread.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/dom_ui/chrome_url_data_manager.h"
20 #include "chrome/browser/dom_ui/ntp_resource_cache.h" 19 #include "chrome/browser/dom_ui/ntp_resource_cache.h"
21 #include "chrome/browser/extensions/extension_service.h" 20 #include "chrome/browser/extensions/extension_service.h"
22 #include "chrome/browser/extensions/extension_pref_value_map.h" 21 #include "chrome/browser/extensions/extension_pref_value_map.h"
23 #include "chrome/browser/favicon_service.h" 22 #include "chrome/browser/favicon_service.h"
24 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" 23 #include "chrome/browser/geolocation/geolocation_content_settings_map.h"
25 #include "chrome/browser/geolocation/geolocation_permission_context.h" 24 #include "chrome/browser/geolocation/geolocation_permission_context.h"
26 #include "chrome/browser/history/history.h" 25 #include "chrome/browser/history/history.h"
27 #include "chrome/browser/history/history_backend.h" 26 #include "chrome/browser/history/history_backend.h"
28 #include "chrome/browser/history/top_sites.h" 27 #include "chrome/browser/history/top_sites.h"
29 #include "chrome/browser/in_process_webkit/webkit_context.h" 28 #include "chrome/browser/in_process_webkit/webkit_context.h"
(...skipping 13 matching lines...) Expand all
43 #include "chrome/common/notification_service.h" 42 #include "chrome/common/notification_service.h"
44 #include "chrome/common/url_constants.h" 43 #include "chrome/common/url_constants.h"
45 #include "chrome/test/test_url_request_context_getter.h" 44 #include "chrome/test/test_url_request_context_getter.h"
46 #include "chrome/test/testing_pref_service.h" 45 #include "chrome/test/testing_pref_service.h"
47 #include "chrome/test/ui_test_utils.h" 46 #include "chrome/test/ui_test_utils.h"
48 #include "net/base/cookie_monster.h" 47 #include "net/base/cookie_monster.h"
49 #include "net/url_request/url_request_context.h" 48 #include "net/url_request/url_request_context.h"
50 #include "net/url_request/url_request_test_util.h" 49 #include "net/url_request/url_request_test_util.h"
51 #include "testing/gmock/include/gmock/gmock.h" 50 #include "testing/gmock/include/gmock/gmock.h"
52 #include "webkit/database/database_tracker.h" 51 #include "webkit/database/database_tracker.h"
53
54 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) 52 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
55 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" 53 #include "chrome/browser/ui/gtk/gtk_theme_provider.h"
56 #endif 54 #endif
57 55
58 using base::Time; 56 using base::Time;
59 using testing::NiceMock; 57 using testing::NiceMock;
60 using testing::Return; 58 using testing::Return;
61 59
62 namespace { 60 namespace {
63 61
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 } 752 }
755 753
756 PromoCounter* TestingProfile::GetInstantPromoCounter() { 754 PromoCounter* TestingProfile::GetInstantPromoCounter() {
757 return NULL; 755 return NULL;
758 } 756 }
759 757
760 policy::ProfilePolicyContext* TestingProfile::GetPolicyContext() { 758 policy::ProfilePolicyContext* TestingProfile::GetPolicyContext() {
761 return NULL; 759 return NULL;
762 } 760 }
763 761
764 ChromeURLDataManager* TestingProfile::GetChromeURLDataManager() {
765 if (!chrome_url_data_manager_.get())
766 chrome_url_data_manager_.reset(new ChromeURLDataManager(this));
767 return chrome_url_data_manager_.get();
768 }
769
770 PrerenderManager* TestingProfile::GetPrerenderManager() { 762 PrerenderManager* TestingProfile::GetPrerenderManager() {
771 return NULL; 763 return NULL;
772 } 764 }
773 765
774 PrefService* TestingProfile::GetOffTheRecordPrefs() { 766 PrefService* TestingProfile::GetOffTheRecordPrefs() {
775 return NULL; 767 return NULL;
776 } 768 }
777 769
778 void TestingProfile::DestroyWebDataService() { 770 void TestingProfile::DestroyWebDataService() {
779 if (!web_data_service_.get()) 771 if (!web_data_service_.get())
780 return; 772 return;
781 773
782 web_data_service_->Shutdown(); 774 web_data_service_->Shutdown();
783 } 775 }
OLDNEW
« no previous file with comments | « chrome/test/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698