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

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

Issue 297193002: Cleanup: Remove unused bits of TestingProfile. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 7 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"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 guest_session_(guest_session), 253 guest_session_(guest_session),
254 managed_user_id_(managed_user_id), 254 managed_user_id_(managed_user_id),
255 last_session_exited_cleanly_(true), 255 last_session_exited_cleanly_(true),
256 extension_special_storage_policy_(extension_policy), 256 extension_special_storage_policy_(extension_policy),
257 profile_path_(path), 257 profile_path_(path),
258 browser_context_dependency_manager_( 258 browser_context_dependency_manager_(
259 BrowserContextDependencyManager::GetInstance()), 259 BrowserContextDependencyManager::GetInstance()),
260 resource_context_(NULL), 260 resource_context_(NULL),
261 delegate_(delegate), 261 delegate_(delegate),
262 policy_service_(policy_service.release()) { 262 policy_service_(policy_service.release()) {
263
264 // If no profile path was supplied, create one. 263 // If no profile path was supplied, create one.
265 if (profile_path_.empty()) { 264 if (profile_path_.empty()) {
266 CreateTempProfileDir(); 265 CreateTempProfileDir();
267 profile_path_ = temp_dir_.path(); 266 profile_path_ = temp_dir_.path();
268 } 267 }
269 268
270 // Set any testing factories prior to initializing the services. 269 // Set any testing factories prior to initializing the services.
271 for (TestingFactories::const_iterator it = factories.begin(); 270 for (TestingFactories::const_iterator it = factories.begin();
272 it != factories.end(); ++it) { 271 it != factories.end(); ++it) {
273 it->first->SetTestingFactory(this, it->second); 272 it->first->SetTestingFactory(this, it->second);
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 824
826 content::GeolocationPermissionContext* 825 content::GeolocationPermissionContext*
827 TestingProfile::GetGeolocationPermissionContext() { 826 TestingProfile::GetGeolocationPermissionContext() {
828 return ChromeGeolocationPermissionContextFactory::GetForProfile(this); 827 return ChromeGeolocationPermissionContextFactory::GetForProfile(this);
829 } 828 }
830 829
831 content::BrowserPluginGuestManager* TestingProfile::GetGuestManager() { 830 content::BrowserPluginGuestManager* TestingProfile::GetGuestManager() {
832 return GuestViewManager::FromBrowserContext(this); 831 return GuestViewManager::FromBrowserContext(this);
833 } 832 }
834 833
835 std::wstring TestingProfile::GetName() {
836 return std::wstring();
837 }
838
839 std::wstring TestingProfile::GetID() {
840 return id_;
841 }
842
843 void TestingProfile::SetID(const std::wstring& id) {
844 id_ = id;
845 }
846
847 bool TestingProfile::IsSameProfile(Profile *p) { 834 bool TestingProfile::IsSameProfile(Profile *p) {
848 return this == p; 835 return this == p;
849 } 836 }
850 837
851 base::Time TestingProfile::GetStartTime() const { 838 base::Time TestingProfile::GetStartTime() const {
852 return start_time_; 839 return start_time_;
853 } 840 }
854 841
855 base::FilePath TestingProfile::last_selected_directory() { 842 base::FilePath TestingProfile::last_selected_directory() {
856 return last_selected_directory_; 843 return last_selected_directory_;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 path_, 972 path_,
986 delegate_, 973 delegate_,
987 extension_policy_, 974 extension_policy_,
988 pref_service_.Pass(), 975 pref_service_.Pass(),
989 incognito_, 976 incognito_,
990 guest_session_, 977 guest_session_,
991 managed_user_id_, 978 managed_user_id_,
992 policy_service_.Pass(), 979 policy_service_.Pass(),
993 testing_factories_)); 980 testing_factories_));
994 } 981 }
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