diff options
Diffstat (limited to 'chrome/browser/profiles')
-rw-r--r-- | chrome/browser/profiles/off_the_record_profile_impl.cc | 4 | ||||
-rw-r--r-- | chrome/browser/profiles/off_the_record_profile_impl.h | 1 | ||||
-rw-r--r-- | chrome/browser/profiles/profile.h | 4 | ||||
-rw-r--r-- | chrome/browser/profiles/profile_dependency_manager.cc | 2 | ||||
-rw-r--r-- | chrome/browser/profiles/profile_impl.cc | 8 | ||||
-rw-r--r-- | chrome/browser/profiles/profile_impl.h | 2 |
6 files changed, 2 insertions, 19 deletions
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc index c22c132..ad58ba2 100644 --- a/chrome/browser/profiles/off_the_record_profile_impl.cc +++ b/chrome/browser/profiles/off_the_record_profile_impl.cc @@ -342,10 +342,6 @@ content::SpeechRecognitionPreferences* return profile_->GetSpeechRecognitionPreferences(); } -UserStyleSheetWatcher* OffTheRecordProfileImpl::GetUserStyleSheetWatcher() { - return profile_->GetUserStyleSheetWatcher(); -} - bool OffTheRecordProfileImpl::DidLastSessionExitCleanly() { return profile_->DidLastSessionExitCleanly(); } diff --git a/chrome/browser/profiles/off_the_record_profile_impl.h b/chrome/browser/profiles/off_the_record_profile_impl.h index 0427b15..cc58a70 100644 --- a/chrome/browser/profiles/off_the_record_profile_impl.h +++ b/chrome/browser/profiles/off_the_record_profile_impl.h @@ -63,7 +63,6 @@ class OffTheRecordProfileImpl : public Profile, const std::string& app_id) OVERRIDE; virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; - virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() OVERRIDE; virtual BookmarkModel* GetBookmarkModel() OVERRIDE; virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; virtual bool IsSameProfile(Profile* profile) OVERRIDE; diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h index 446b508..eca7fba 100644 --- a/chrome/browser/profiles/profile.h +++ b/chrome/browser/profiles/profile.h @@ -37,7 +37,6 @@ class PromoCounter; class ProtocolHandlerRegistry; class TestingProfile; class UserScriptMaster; -class UserStyleSheetWatcher; class VisitedLinkMaster; class WebDataService; @@ -319,9 +318,6 @@ class Profile : public content::BrowserContext { // Returns the Hostname <-> Content settings map for this profile. virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; - // Returns the user style sheet watcher. - virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() = 0; - // Returns the BookmarkModel, creating if not yet created. virtual BookmarkModel* GetBookmarkModel() = 0; diff --git a/chrome/browser/profiles/profile_dependency_manager.cc b/chrome/browser/profiles/profile_dependency_manager.cc index 3565e0c..f225e6a 100644 --- a/chrome/browser/profiles/profile_dependency_manager.cc +++ b/chrome/browser/profiles/profile_dependency_manager.cc @@ -37,6 +37,7 @@ #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" #include "chrome/browser/ui/global_error_service_factory.h" #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" +#include "chrome/browser/user_style_sheet_watcher_factory.h" #ifndef NDEBUG #include "base/command_line.h" @@ -202,6 +203,7 @@ void ProfileDependencyManager::AssertFactoriesBuilt() { #if defined(ENABLE_THEMES) ThemeServiceFactory::GetInstance(); #endif + UserStyleSheetWatcherFactory::GetInstance(); #if defined(ENABLE_WEB_INTENTS) WebIntentsRegistryFactory::GetInstance(); #endif diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc index 1f6179d..b8958dd 100644 --- a/chrome/browser/profiles/profile_impl.cc +++ b/chrome/browser/profiles/profile_impl.cc @@ -761,14 +761,6 @@ content::SpeechRecognitionPreferences* #endif } -UserStyleSheetWatcher* ProfileImpl::GetUserStyleSheetWatcher() { - if (!user_style_sheet_watcher_.get()) { - user_style_sheet_watcher_ = new UserStyleSheetWatcher(this, GetPath()); - user_style_sheet_watcher_->Init(); - } - return user_style_sheet_watcher_.get(); -} - GAIAInfoUpdateService* ProfileImpl::GetGAIAInfoUpdateService() { if (!gaia_info_update_service_.get() && GAIAInfoUpdateService::ShouldUseGAIAProfileInfo(this)) { diff --git a/chrome/browser/profiles/profile_impl.h b/chrome/browser/profiles/profile_impl.h index 9f76bc1..252dc61 100644 --- a/chrome/browser/profiles/profile_impl.h +++ b/chrome/browser/profiles/profile_impl.h @@ -97,7 +97,6 @@ class ProfileImpl : public Profile, const std::string& app_id) OVERRIDE; virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; - virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() OVERRIDE; virtual BookmarkModel* GetBookmarkModel() OVERRIDE; virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; virtual bool IsSameProfile(Profile* profile) OVERRIDE; @@ -211,7 +210,6 @@ class ProfileImpl : public Profile, geolocation_permission_context_; scoped_refptr<content::SpeechRecognitionPreferences> speech_recognition_preferences_; - scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; scoped_refptr<HistoryService> history_service_; scoped_ptr<FaviconService> favicon_service_; |