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

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

Issue 9665007: Profile refactoring: Remove all PasswordStore code from the Profile interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win and Mac Created 8 years, 9 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
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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 } 529 }
530 530
531 WebDataService* TestingProfile::GetWebDataService(ServiceAccessType access) { 531 WebDataService* TestingProfile::GetWebDataService(ServiceAccessType access) {
532 return web_data_service_.get(); 532 return web_data_service_.get();
533 } 533 }
534 534
535 WebDataService* TestingProfile::GetWebDataServiceWithoutCreating() { 535 WebDataService* TestingProfile::GetWebDataServiceWithoutCreating() {
536 return web_data_service_.get(); 536 return web_data_service_.get();
537 } 537 }
538 538
539 PasswordStore* TestingProfile::GetPasswordStore(ServiceAccessType access) {
540 return NULL;
541 }
542
543 void TestingProfile::SetPrefService(PrefService* prefs) { 539 void TestingProfile::SetPrefService(PrefService* prefs) {
544 prefs_.reset(prefs); 540 prefs_.reset(prefs);
545 } 541 }
546 542
547 void TestingProfile::CreateTestingPrefService() { 543 void TestingProfile::CreateTestingPrefService() {
548 DCHECK(!prefs_.get()); 544 DCHECK(!prefs_.get());
549 testing_prefs_ = new TestingPrefService(); 545 testing_prefs_ = new TestingPrefService();
550 prefs_.reset(testing_prefs_); 546 prefs_.reset(testing_prefs_);
551 Profile::RegisterUserPrefs(prefs_.get()); 547 Profile::RegisterUserPrefs(prefs_.get());
552 browser::RegisterUserPrefs(prefs_.get()); 548 browser::RegisterUserPrefs(prefs_.get());
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { 750 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() {
755 return GetExtensionSpecialStoragePolicy(); 751 return GetExtensionSpecialStoragePolicy();
756 } 752 }
757 753
758 void TestingProfile::DestroyWebDataService() { 754 void TestingProfile::DestroyWebDataService() {
759 if (!web_data_service_.get()) 755 if (!web_data_service_.get())
760 return; 756 return;
761 757
762 web_data_service_->Shutdown(); 758 web_data_service_->Shutdown();
763 } 759 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698