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

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: rebase 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
« 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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 SpeechInputPreferences* TestingProfile::GetSpeechInputPreferences() { 712 SpeechInputPreferences* TestingProfile::GetSpeechInputPreferences() {
713 if (!speech_input_preferences_.get()) 713 if (!speech_input_preferences_.get())
714 speech_input_preferences_ = new ChromeSpeechInputPreferences(GetPrefs()); 714 speech_input_preferences_ = new ChromeSpeechInputPreferences(GetPrefs());
715 return speech_input_preferences_.get(); 715 return speech_input_preferences_.get();
716 } 716 }
717 717
718 HostZoomMap* TestingProfile::GetHostZoomMap() { 718 HostZoomMap* TestingProfile::GetHostZoomMap() {
719 return NULL; 719 return NULL;
720 } 720 }
721 721
722 bool TestingProfile::HasProfileSyncService() const { 722 bool TestingProfile::HasProfileSyncService() {
723 return (profile_sync_service_.get() != NULL); 723 return (profile_sync_service_.get() != NULL);
724 } 724 }
725 725
726 std::wstring TestingProfile::GetName() { 726 std::wstring TestingProfile::GetName() {
727 return std::wstring(); 727 return std::wstring();
728 } 728 }
729 729
730 std::wstring TestingProfile::GetID() { 730 std::wstring TestingProfile::GetID() {
731 return id_; 731 return id_;
732 } 732 }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { 855 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() {
856 return GetExtensionSpecialStoragePolicy(); 856 return GetExtensionSpecialStoragePolicy();
857 } 857 }
858 858
859 void TestingProfile::DestroyWebDataService() { 859 void TestingProfile::DestroyWebDataService() {
860 if (!web_data_service_.get()) 860 if (!web_data_service_.get())
861 return; 861 return;
862 862
863 web_data_service_->Shutdown(); 863 web_data_service_->Shutdown();
864 } 864 }
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