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

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

Issue 11188020: Introduce Android variants of ChromeGeolocationPermissionContext, GeolocationConfirmInfoBarDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build error Created 8 years, 2 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/chrome_browser.gypi ('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/extensions/extension_service.h" 21 #include "chrome/browser/extensions/extension_service.h"
22 #include "chrome/browser/extensions/extension_special_storage_policy.h" 22 #include "chrome/browser/extensions/extension_special_storage_policy.h"
23 #include "chrome/browser/extensions/extension_system.h" 23 #include "chrome/browser/extensions/extension_system.h"
24 #include "chrome/browser/extensions/extension_system_factory.h" 24 #include "chrome/browser/extensions/extension_system_factory.h"
25 #include "chrome/browser/extensions/test_extension_system.h" 25 #include "chrome/browser/extensions/test_extension_system.h"
26 #include "chrome/browser/favicon/favicon_service.h" 26 #include "chrome/browser/favicon/favicon_service.h"
27 #include "chrome/browser/favicon/favicon_service_factory.h" 27 #include "chrome/browser/favicon/favicon_service_factory.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/geolocation/chrome_geolocation_permission_context_facto ry.h"
29 #include "chrome/browser/history/history.h" 30 #include "chrome/browser/history/history.h"
30 #include "chrome/browser/history/history_backend.h" 31 #include "chrome/browser/history/history_backend.h"
31 #include "chrome/browser/history/history_service_factory.h" 32 #include "chrome/browser/history/history_service_factory.h"
32 #include "chrome/browser/history/shortcuts_backend.h" 33 #include "chrome/browser/history/shortcuts_backend.h"
33 #include "chrome/browser/history/shortcuts_backend_factory.h" 34 #include "chrome/browser/history/shortcuts_backend_factory.h"
34 #include "chrome/browser/history/top_sites.h" 35 #include "chrome/browser/history/top_sites.h"
35 #include "chrome/browser/net/proxy_service_factory.h" 36 #include "chrome/browser/net/proxy_service_factory.h"
36 #include "chrome/browser/notifications/desktop_notification_service.h" 37 #include "chrome/browser/notifications/desktop_notification_service.h"
37 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 38 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
38 #include "chrome/browser/policy/user_cloud_policy_manager.h" 39 #include "chrome/browser/policy/user_cloud_policy_manager.h"
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 host_content_settings_map_->RegisterExtensionService(extension_service); 709 host_content_settings_map_->RegisterExtensionService(extension_service);
709 #endif 710 #endif
710 } 711 }
711 return host_content_settings_map_.get(); 712 return host_content_settings_map_.get();
712 } 713 }
713 714
714 content::GeolocationPermissionContext* 715 content::GeolocationPermissionContext*
715 TestingProfile::GetGeolocationPermissionContext() { 716 TestingProfile::GetGeolocationPermissionContext() {
716 if (!geolocation_permission_context_.get()) { 717 if (!geolocation_permission_context_.get()) {
717 geolocation_permission_context_ = 718 geolocation_permission_context_ =
718 ChromeGeolocationPermissionContext::Create(this); 719 ChromeGeolocationPermissionContextFactory::Create(this);
719 } 720 }
720 return geolocation_permission_context_.get(); 721 return geolocation_permission_context_.get();
721 } 722 }
722 723
723 content::SpeechRecognitionPreferences* 724 content::SpeechRecognitionPreferences*
724 TestingProfile::GetSpeechRecognitionPreferences() { 725 TestingProfile::GetSpeechRecognitionPreferences() {
725 #if defined(ENABLE_INPUT_SPEECH) 726 #if defined(ENABLE_INPUT_SPEECH)
726 return ChromeSpeechRecognitionPreferences::GetForProfile(this); 727 return ChromeSpeechRecognitionPreferences::GetForProfile(this);
727 #else 728 #else
728 return NULL; 729 return NULL;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() { 847 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() {
847 DCHECK(!build_called_); 848 DCHECK(!build_called_);
848 build_called_ = true; 849 build_called_ = true;
849 return scoped_ptr<TestingProfile>(new TestingProfile( 850 return scoped_ptr<TestingProfile>(new TestingProfile(
850 path_, 851 path_,
851 delegate_, 852 delegate_,
852 extension_policy_, 853 extension_policy_,
853 pref_service_.Pass(), 854 pref_service_.Pass(),
854 user_cloud_policy_manager_.Pass())); 855 user_cloud_policy_manager_.Pass()));
855 } 856 }
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698