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

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

Issue 9232011: sync: Make ProfileSyncService a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: init Created 8 years, 11 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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 SpeechInputPreferences* TestingProfile::GetSpeechInputPreferences() { 713 SpeechInputPreferences* TestingProfile::GetSpeechInputPreferences() {
714 if (!speech_input_preferences_.get()) 714 if (!speech_input_preferences_.get())
715 speech_input_preferences_ = new ChromeSpeechInputPreferences(GetPrefs()); 715 speech_input_preferences_ = new ChromeSpeechInputPreferences(GetPrefs());
716 return speech_input_preferences_.get(); 716 return speech_input_preferences_.get();
717 } 717 }
718 718
719 HostZoomMap* TestingProfile::GetHostZoomMap() { 719 HostZoomMap* TestingProfile::GetHostZoomMap() {
720 return NULL; 720 return NULL;
721 } 721 }
722 722
723 bool TestingProfile::HasProfileSyncService() const { 723 bool TestingProfile::HasProfileSyncService() {
724 return (profile_sync_service_.get() != NULL); 724 return (profile_sync_service_.get() != NULL);
725 } 725 }
726 726
727 std::wstring TestingProfile::GetName() { 727 std::wstring TestingProfile::GetName() {
728 return std::wstring(); 728 return std::wstring();
729 } 729 }
730 730
731 std::wstring TestingProfile::GetID() { 731 std::wstring TestingProfile::GetID() {
732 return id_; 732 return id_;
733 } 733 }
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { 868 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() {
869 return GetExtensionSpecialStoragePolicy(); 869 return GetExtensionSpecialStoragePolicy();
870 } 870 }
871 871
872 void TestingProfile::DestroyWebDataService() { 872 void TestingProfile::DestroyWebDataService() {
873 if (!web_data_service_.get()) 873 if (!web_data_service_.get())
874 return; 874 return;
875 875
876 web_data_service_->Shutdown(); 876 web_data_service_->Shutdown();
877 } 877 }
OLDNEW
« chrome/browser/sync/profile_sync_service_factory.cc ('K') | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698